config/debug/gdb.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Sep 13 17:51:33 2009 +0200 (2009-09-13)
changeset 1534 d4ddf19a1968
parent 1390 38e2e6d5c9b4
child 1535 073d351bdcd3
permissions -rw-r--r--
config: re-order menu entries so that latest versions are at the top

It makes better sense to have latest versions at the top of the choice
entries.
     1 # GDB menu
     2 
     3 config DEBUG_gdb
     4     help
     5       Enable gdb for the target
     6 
     7 config GDB_CROSS
     8     bool
     9     prompt "Cross-gdb"
    10     default y
    11     select GDB_GDBSERVER if ! BARE_METAL
    12     help
    13       Build and install a cross-gdb for the target, to run on host.
    14 
    15 config GDB_CROSS_STATIC
    16     bool
    17     prompt "Build a static cross gdb"
    18     default n
    19     depends on GDB_CROSS
    20     help
    21       A static cross gdb can be usefull if you debug on a machine that is
    22       not the one that is used to compile the toolchain.
    23       
    24       That way, you can share the cross-gdb without installing a toolchain
    25       on every machine that will be used to debug target programs.
    26 
    27 config GDB_CROSS_INSIGHT
    28     bool
    29     prompt "Use Insight instead (EXPERIMENTAL)"
    30     default n
    31     depends on GDB_CROSS
    32     depends on EXPERIMENTAL
    33     help
    34       If you say 'Y' here, then Insight will be used to build the cross
    35       debugger, instead of the plain gdb.
    36       
    37       Insight is gdb plus a TCL/TK GUI: http://sourceware.org/insight/
    38 
    39 config GDB_NATIVE
    40     bool
    41     prompt "Native gdb"
    42     default n
    43     depends on ! BARE_METAL
    44     help
    45       Build and install a native gdb for the target, to run on the target.
    46 
    47 config GDB_NATIVE_STATIC
    48     bool
    49     prompt "Build a static native gdb"
    50     default n
    51     depends on GDB_NATIVE
    52     help
    53       In case you have trouble with dynamic loading of shared libraries,
    54       you will find that a static gdb comes in handy.
    55 
    56 config GDB_NATIVE_USE_GMP_MPFR
    57     bool
    58     prompt "Use GMP and MPFR"
    59     default n
    60     depends on GDB_NATIVE
    61     select GMP_MPFR
    62     select COMP_LIBS_TARGET
    63     help
    64       gdb can make use of the GMP and MPFR libraries.
    65       
    66       While the cross-gdb (above) can use the libraries compiled for the
    67       host, the native gdb needs the libraries for the target (where it will
    68       eventually run).
    69       
    70       Setting this option will force building the GMP and MPFR libraries for
    71       the target, and configure the native gdb to use them.
    72 
    73 config GDB_GDBSERVER
    74     bool
    75     prompt "gdbserver"
    76     default n
    77     depends on ! BARE_METAL
    78     help
    79       Build and install a gdbserver for the target, to run on the target.
    80 
    81 config GDB_GDBSERVER_STATIC
    82     bool
    83     prompt "Build a static gdbserver"
    84     default y
    85     depends on GDB_GDBSERVER
    86     help
    87       In case you have trouble with dynamic loading of shared libraries,
    88       you will find that a static gdbserver comes in handy.
    89 
    90 if BARE_METAL
    91 comment "In bare-metal, you'll need to   "
    92 comment "provide your own gdbserver stub."
    93 endif # BARE_METAL
    94 
    95 choice
    96     bool
    97     prompt "gdb version"
    98     depends on GDB_CROSS || GDB_NATIVE || GDB_GDBSERVER
    99 
   100 config GDB_V_snapshot
   101     bool
   102     prompt "snapshot (EXPERIMENTAL)"
   103     depends on EXPERIMENTAL
   104     depends on ! GDB_CROSS_INSIGHT
   105 
   106 config GDB_V_6_8
   107     bool
   108     prompt "6.8"
   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_7
   116     bool
   117     prompt "6.7 (EXPERIMENTAL)"
   118     depends on EXPERIMENTAL
   119 
   120 config GDB_V_6_6
   121     bool
   122     prompt "6.6"
   123 
   124 config GDB_V_6_5
   125     bool
   126     prompt "6.5 (OBSOLETE)"
   127     depends on OBSOLETE
   128 
   129 config GDB_V_6_4
   130     bool
   131     prompt "6.4 (OBSOLETE)"
   132     depends on OBSOLETE
   133 
   134 # CT_INSERT_VERSION_ABOVE
   135 # Don't remove above line!
   136 
   137 endchoice
   138 
   139 config GDB_VERSION
   140     string
   141     default "snapshot" if GDB_V_snapshot
   142     default "6.8" if GDB_V_6_8
   143     default "6.7.1" if GDB_V_6_7_1
   144     default "6.7" if GDB_V_6_7
   145     default "6.6" if GDB_V_6_6
   146     default "6.5" if GDB_V_6_5
   147     default "6.4" if GDB_V_6_4
   148 # CT_INSERT_VERSION_STRING_ABOVE
   149 # Don't remove above line!
   150 
   151 if GDB_NATIVE
   152 
   153 comment "Native gdb needs a native ncurses library"
   154 
   155 choice
   156     bool
   157     prompt "ncurses version"
   158 
   159 config NCURSES_V_5_7
   160     bool
   161     prompt "5.7"
   162 
   163 config NCURSES_V_5_6
   164     bool
   165     prompt "5.6"
   166 
   167 endchoice
   168 
   169 config NCURSES_VERSION
   170     string
   171     default "5.7" if NCURSES_V_5_7
   172     default "5.6" if NCURSES_V_5_6
   173 
   174 endif # GDB_NATIVE --> ncurses