config/debug/gdb.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Mar 29 00:15:32 2010 +0200 (2010-03-29)
changeset 1864 758d5137fe87
parent 1849 73f76483a389
child 1874 712cdb6504aa
permissions -rw-r--r--
scripts/populate: optimise search loop

Curently, populate will iterate over all ELF (shared objects|executables)
to look for missing NEEDED DSOs, adding to the list at every iterations
of the search loop.

Instead of looking again at previously handled ELF files, recursively
resolve every ELf files.

Also, in case there are a whole lot of files (more than the shell can
accept as arguments list, or creating a command line longer than the
shell can cope with), use a temporary file with the list of files
to search for missing dependencies.
yann@96
     1
# GDB menu
yann@96
     2
yann@916
     3
config DEBUG_gdb
yann@96
     4
    help
yann@96
     5
      Enable gdb for the target
yann@96
     6
yann@1849
     7
source "config/debug/gdb.in.cross"
yann@1849
     8
source "config/debug/gdb.in.native"
yann@1849
     9
source "config/debug/gdb.in.gdbserver"
yann@1269
    10
yann@96
    11
choice
yann@96
    12
    bool
yann@96
    13
    prompt "gdb version"
yann@583
    14
    depends on GDB_CROSS || GDB_NATIVE || GDB_GDBSERVER
yann@1535
    15
# Don't remove next line
yann@1535
    16
# CT_INSERT_VERSION_BELOW
yann@1534
    17
jocke@1705
    18
config GDB_V_7_0_1
jocke@1705
    19
    bool
jocke@1705
    20
    prompt "7.0.1 (EXPERIMENTAL)"
jocke@1705
    21
    depends on EXPERIMENTAL
yann@1852
    22
    select GDB_7_0_or_later
jocke@1705
    23
yann@1612
    24
config GDB_V_7_0
yann@1612
    25
    bool
yann@1612
    26
    prompt "7.0 (EXPERIMENTAL)"
yann@1612
    27
    depends on EXPERIMENTAL
yann@1852
    28
    select GDB_7_0_or_later
yann@1612
    29
yann@1534
    30
config GDB_V_6_8
yann@1534
    31
    bool
yann@1534
    32
    prompt "6.8"
yann@1534
    33
yann@1535
    34
config GDB_V_snapshot
yann@1535
    35
    bool
yann@1535
    36
    prompt "snapshot (EXPERIMENTAL)"
yann@1535
    37
    depends on EXPERIMENTAL
yann@1535
    38
    depends on ! GDB_CROSS_INSIGHT
yann@865
    39
yann@96
    40
endchoice
yann@96
    41
yann@1852
    42
config GDB_7_0_or_later
yann@1852
    43
    bool
yann@1852
    44
yann@96
    45
config GDB_VERSION
yann@96
    46
    string
yann@1535
    47
# Don't remove next line
yann@1535
    48
# CT_INSERT_VERSION_STRING_BELOW
jocke@1705
    49
    default "7.0.1" if GDB_V_7_0_1
yann@1612
    50
    default "7.0" if GDB_V_7_0
yann@1534
    51
    default "6.8" if GDB_V_6_8
yann@1535
    52
    default "snapshot" if GDB_V_snapshot