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.
     1 # GDB menu
     2 
     3 config DEBUG_gdb
     4     help
     5       Enable gdb for the target
     6 
     7 source "config/debug/gdb.in.cross"
     8 source "config/debug/gdb.in.native"
     9 source "config/debug/gdb.in.gdbserver"
    10 
    11 choice
    12     bool
    13     prompt "gdb version"
    14     depends on GDB_CROSS || GDB_NATIVE || GDB_GDBSERVER
    15 # Don't remove next line
    16 # CT_INSERT_VERSION_BELOW
    17 
    18 config GDB_V_7_0_1
    19     bool
    20     prompt "7.0.1 (EXPERIMENTAL)"
    21     depends on EXPERIMENTAL
    22     select GDB_7_0_or_later
    23 
    24 config GDB_V_7_0
    25     bool
    26     prompt "7.0 (EXPERIMENTAL)"
    27     depends on EXPERIMENTAL
    28     select GDB_7_0_or_later
    29 
    30 config GDB_V_6_8
    31     bool
    32     prompt "6.8"
    33 
    34 config GDB_V_snapshot
    35     bool
    36     prompt "snapshot (EXPERIMENTAL)"
    37     depends on EXPERIMENTAL
    38     depends on ! GDB_CROSS_INSIGHT
    39 
    40 endchoice
    41 
    42 config GDB_7_0_or_later
    43     bool
    44 
    45 config GDB_VERSION
    46     string
    47 # Don't remove next line
    48 # CT_INSERT_VERSION_STRING_BELOW
    49     default "7.0.1" if GDB_V_7_0_1
    50     default "7.0" if GDB_V_7_0
    51     default "6.8" if GDB_V_6_8
    52     default "snapshot" if GDB_V_snapshot