config/debug/gdb.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jul 26 15:14:48 2008 +0000 (2008-07-26)
branch1.2
changeset 731 65614732cfe7
parent 622 259d3b95bfad
child 709 8d945f24f7ae
permissions -rw-r--r--
Backport #857 from trunk:
While retrieving files, propagate the preferred extension down to sub-functions.

/branches/1.2/scripts/functions | 8 5 3 0 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
     1 # GDB menu
     2 
     3 menuconfig GDB
     4     bool
     5     prompt "gdb"
     6     default n
     7     help
     8       Enable gdb for the target
     9 
    10 if GDB
    11 
    12 config GDB_CROSS
    13     bool
    14     prompt "Cross-gdb"
    15     default y
    16     select GDB_GDBSERVER
    17     help
    18       Build and install a cross-gdb for the target, to run on host.
    19 
    20 config GDB_CROSS_STATIC
    21     bool
    22     prompt "Build a static cross gdb"
    23     default n
    24     depends on GDB_CROSS
    25     help
    26       A static cross gdb can be usefull if you debug on a machine that is
    27       not the one that is used to compile the toolchain.
    28 
    29       That way, you can share the cross-gdb without installing a toolchain
    30       on every machine that will be used to debug target programs.
    31 
    32 config GDB_NATIVE
    33     bool
    34     prompt "Native gdb"
    35     default n
    36     help
    37       Build and install a native gdb for the target, to run on the target.
    38 
    39 config GDB_NATIVE_STATIC
    40     bool
    41     prompt "Build a static native gdb"
    42     default n
    43     depends on GDB_NATIVE
    44     help
    45       In case you have trouble with dynamic loading of shared libraries,
    46       you will find that a static gdb comes in handy.
    47 
    48 config GDB_NATIVE_USE_GMP_MPFR
    49     bool
    50     prompt "Use GMP and MPFR (EXPERIMENTAL)"
    51     default n
    52     depends on EXPERIMENTAL
    53     depends on GDB_NATIVE
    54     select GMP_MPFR
    55     select GMP_MPFR_TARGET
    56     help
    57       gdb can make use of the GMP and MPFR libraries.
    58 
    59       While the cross-gdb (above) can use the libraries compiled for the
    60       host, the native gdb needs the libraries for the target (where it will
    61       eventually run).
    62 
    63       Setting this option will force building the GMP and MPFR libraries for
    64       the target, and configure the native gdb to use them.
    65 
    66 config GDB_GDBSERVER
    67     bool
    68     prompt "gdbserver"
    69     default n
    70     help
    71       Build and install a gdbserver for the target, to run on the target.
    72 
    73 config GDB_GDBSERVER_STATIC
    74     bool
    75     prompt "Build a static gdbserver"
    76     default y
    77     depends on GDB_GDBSERVER
    78     help
    79       In case you have trouble with dynamic loading of shared libraries,
    80       you will find that a static gdbserver comes in handy.
    81 
    82 choice
    83     bool
    84     prompt "gdb version"
    85     depends on GDB_CROSS || GDB_NATIVE || GDB_GDBSERVER
    86 
    87 config GDB_V_snapshot
    88     bool
    89     prompt "snapshot (EXPERIMENTAL)"
    90     depends on EXPERIMENTAL
    91 
    92 config GDB_V_6_4
    93     bool
    94     prompt "6.4 (OBSOLETE)"
    95     depends on OBSOLETE
    96 
    97 config GDB_V_6_5
    98     bool
    99     prompt "6.5"
   100 
   101 config GDB_V_6_6
   102     bool
   103     prompt "6.6"
   104 
   105 config GDB_V_6_7
   106     bool
   107     prompt "6.7 (EXPERIMENTAL)"
   108     depends on EXPERIMENTAL
   109 
   110 config GDB_V_6_7_1
   111     bool
   112     prompt "6.7.1 (EXPERIMENTAL)"
   113     depends on EXPERIMENTAL
   114 
   115 config GDB_V_6_8
   116     bool
   117     prompt "6.8"
   118 
   119 # CT_INSERT_VERSION_ABOVE
   120 # Don't remove above line!
   121 endchoice
   122 
   123 config GDB_VERSION
   124     string
   125     default "snapshot" if GDB_V_snapshot
   126     default "6.4" if GDB_V_6_4
   127     default "6.5" if GDB_V_6_5
   128     default "6.6" if GDB_V_6_6
   129     default "6.7" if GDB_V_6_7
   130     default "6.7.1" if GDB_V_6_7_1
   131     default "6.8" if GDB_V_6_8
   132 # CT_INSERT_VERSION_STRING_ABOVE
   133 # Don't remove above line!
   134 
   135 if GDB_NATIVE
   136 
   137 comment "Native gdb needs the ncurses library on the target"
   138 
   139 choice
   140     bool
   141     prompt "ncurses version"
   142 
   143 config NCURSES_V_5_6
   144     bool
   145     prompt "5.6"
   146 
   147 endchoice
   148 
   149 config NCURSES_VERSION
   150     string
   151     default "5.6" if NCURSES_V_5_6
   152 
   153 endif # GDB_NATIVE --> ncurses
   154 
   155 endif