config/debug/gdb.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Mar 05 18:19:25 2010 +0100 (2010-03-05)
changeset 1844 4d6a56579d9d
parent 1810 e44f67656c5f
child 1849 73f76483a389
permissions -rw-r--r--
config: hide entries when in backend mode

This implies hidding entries for:
- binutils libraries
- dmalloc
- duma
- native gdb
- ltrace
- strace
- sstrip
     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     depends on ! BACKEND
    45     help
    46       Build and install a native gdb for the target, to run on the target.
    47 
    48 config GDB_NATIVE_STATIC
    49     bool
    50     prompt "Build a static native gdb"
    51     default n
    52     depends on GDB_NATIVE
    53     help
    54       In case you have trouble with dynamic loading of shared libraries,
    55       you will find that a static gdb comes in handy.
    56 
    57 config GDB_NATIVE_USE_GMP_MPFR
    58     bool
    59     prompt "Use GMP and MPFR"
    60     default n
    61     depends on GDB_NATIVE
    62     select GMP_TARGET
    63     select MPFR_TARGET
    64     help
    65       gdb can make use of the GMP and MPFR libraries.
    66       
    67       While the cross-gdb (above) can use the libraries compiled for the
    68       host, the native gdb needs the libraries for the target (where it will
    69       eventually run).
    70       
    71       Setting this option will force building the GMP and MPFR libraries for
    72       the target, and configure the native gdb to use them.
    73 
    74 config GDB_GDBSERVER
    75     bool
    76     prompt "gdbserver"
    77     default n
    78     depends on ! BARE_METAL
    79     help
    80       Build and install a gdbserver for the target, to run on the target.
    81 
    82 config GDB_GDBSERVER_STATIC
    83     bool
    84     prompt "Build a static gdbserver"
    85     default y
    86     depends on GDB_GDBSERVER
    87     help
    88       In case you have trouble with dynamic loading of shared libraries,
    89       you will find that a static gdbserver comes in handy.
    90 
    91 if BARE_METAL
    92 comment "In bare-metal, you'll need to   "
    93 comment "provide your own gdbserver stub."
    94 endif # BARE_METAL
    95 
    96 choice
    97     bool
    98     prompt "gdb version"
    99     depends on GDB_CROSS || GDB_NATIVE || GDB_GDBSERVER
   100 # Don't remove next line
   101 # CT_INSERT_VERSION_BELOW
   102 
   103 config GDB_V_7_0_1
   104     bool
   105     prompt "7.0.1 (EXPERIMENTAL)"
   106     depends on EXPERIMENTAL
   107 
   108 config GDB_V_7_0
   109     bool
   110     prompt "7.0 (EXPERIMENTAL)"
   111     depends on EXPERIMENTAL
   112 
   113 config GDB_V_6_8
   114     bool
   115     prompt "6.8"
   116 
   117 config GDB_V_snapshot
   118     bool
   119     prompt "snapshot (EXPERIMENTAL)"
   120     depends on EXPERIMENTAL
   121     depends on ! GDB_CROSS_INSIGHT
   122 
   123 endchoice
   124 
   125 config GDB_VERSION
   126     string
   127 # Don't remove next line
   128 # CT_INSERT_VERSION_STRING_BELOW
   129     default "7.0.1" if GDB_V_7_0_1
   130     default "7.0" if GDB_V_7_0
   131     default "6.8" if GDB_V_6_8
   132     default "snapshot" if GDB_V_snapshot