config/debug/gdb.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Sep 02 10:47:44 2008 +0000 (2008-09-02)
changeset 821 4c073dd24c1d
parent 709 8d945f24f7ae
child 824 cc4590c03dd1
permissions -rw-r--r--
Add support for building Insight instead of gdb (only for the cross-gdb).

/trunk/scripts/build/debug/300-gdb.sh | 62 55 7 0 ++++++++++++++++++++++++++++++++++++-----
/trunk/config/debug/gdb.in | 13 13 0 0 +++++++++
2 files changed, 68 insertions(+), 7 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_CROSS_INSIGHT
    33     bool
    34     prompt "Use Insight instead (EXPERIMENTAL)"
    35     default n
    36     depends on GDB_CROSS
    37     depends on EXPERIMENTAL
    38     help
    39       If you say 'Y' here, then Insight will be used to build the cross
    40       debugger, instead of the plain gdb.
    41       
    42       Insight is gdb plus a TCL/TK GUI: http://sourceware.org/insight/
    43 
    44 config GDB_NATIVE
    45     bool
    46     prompt "Native gdb"
    47     default n
    48     help
    49       Build and install a native gdb for the target, to run on the target.
    50 
    51 config GDB_NATIVE_STATIC
    52     bool
    53     prompt "Build a static native gdb"
    54     default n
    55     depends on GDB_NATIVE
    56     help
    57       In case you have trouble with dynamic loading of shared libraries,
    58       you will find that a static gdb comes in handy.
    59 
    60 config GDB_NATIVE_USE_GMP_MPFR
    61     bool
    62     prompt "Use GMP and MPFR (EXPERIMENTAL)"
    63     default n
    64     depends on EXPERIMENTAL
    65     depends on GDB_NATIVE
    66     select GMP_MPFR
    67     select GMP_MPFR_TARGET
    68     help
    69       gdb can make use of the GMP and MPFR libraries.
    70 
    71       While the cross-gdb (above) can use the libraries compiled for the
    72       host, the native gdb needs the libraries for the target (where it will
    73       eventually run).
    74 
    75       Setting this option will force building the GMP and MPFR libraries for
    76       the target, and configure the native gdb to use them.
    77 
    78 config GDB_GDBSERVER
    79     bool
    80     prompt "gdbserver"
    81     default n
    82     help
    83       Build and install a gdbserver for the target, to run on the target.
    84 
    85 config GDB_GDBSERVER_STATIC
    86     bool
    87     prompt "Build a static gdbserver"
    88     default y
    89     depends on GDB_GDBSERVER
    90     help
    91       In case you have trouble with dynamic loading of shared libraries,
    92       you will find that a static gdbserver comes in handy.
    93 
    94 choice
    95     bool
    96     prompt "gdb version"
    97     depends on GDB_CROSS || GDB_NATIVE || GDB_GDBSERVER
    98 
    99 config GDB_V_snapshot
   100     bool
   101     prompt "snapshot (EXPERIMENTAL)"
   102     depends on EXPERIMENTAL
   103     depends on ! GDB_CROSS_INSIGHT
   104 
   105 config GDB_V_6_4
   106     bool
   107     prompt "6.4 (OBSOLETE)"
   108     depends on OBSOLETE
   109 
   110 config GDB_V_6_5
   111     bool
   112     prompt "6.5 (OBSOLETE)"
   113     depends on OBSOLETE
   114 
   115 config GDB_V_6_6
   116     bool
   117     prompt "6.6"
   118 
   119 config GDB_V_6_7
   120     bool
   121     prompt "6.7 (EXPERIMENTAL)"
   122     depends on EXPERIMENTAL
   123 
   124 config GDB_V_6_7_1
   125     bool
   126     prompt "6.7.1 (EXPERIMENTAL)"
   127     depends on EXPERIMENTAL
   128 
   129 config GDB_V_6_8
   130     bool
   131     prompt "6.8"
   132 
   133 # CT_INSERT_VERSION_ABOVE
   134 # Don't remove above line!
   135 endchoice
   136 
   137 config GDB_VERSION
   138     string
   139     default "snapshot" if GDB_V_snapshot
   140     default "6.4" if GDB_V_6_4
   141     default "6.5" if GDB_V_6_5
   142     default "6.6" if GDB_V_6_6
   143     default "6.7" if GDB_V_6_7
   144     default "6.7.1" if GDB_V_6_7_1
   145     default "6.8" if GDB_V_6_8
   146 # CT_INSERT_VERSION_STRING_ABOVE
   147 # Don't remove above line!
   148 
   149 if GDB_NATIVE
   150 
   151 comment "Native gdb needs the ncurses library on the target"
   152 
   153 choice
   154     bool
   155     prompt "ncurses version"
   156 
   157 config NCURSES_V_5_6
   158     bool
   159     prompt "5.6"
   160 
   161 endchoice
   162 
   163 config NCURSES_VERSION
   164     string
   165     default "5.6" if NCURSES_V_5_6
   166 
   167 endif # GDB_NATIVE --> ncurses
   168 
   169 endif