config/debug/gdb.in.cross
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Mar 15 21:51:20 2010 +0100 (2010-03-15)
changeset 1851 59e178812e8d
parent 1849 73f76483a389
child 1853 8676886c1ca9
permissions -rw-r--r--
debug/gdb: add option to use GMP and MPFR

GMP and MPFR are optional for gdb, so offer a config option.
     1 # Menu for the cross GDB
     2 
     3 config GDB_CROSS
     4     bool
     5     prompt "Cross-gdb"
     6     default y
     7     select GDB_GDBSERVER if ! BARE_METAL
     8     help
     9       Build and install a cross-gdb for the target, to run on host.
    10 
    11 if GDB_CROSS
    12 
    13 config GDB_CROSS_USE_GMP_MPFR
    14     bool
    15     prompt "Use GMP/MPFR"
    16     default n
    17     select GMP
    18     select MPFR
    19     select GDB_CROSS_NO_STATIC
    20     help
    21       gdb can use GMP+MPFR, although it does not seem compulsory.
    22       
    23       Say 'Y' here if you want to use GMP+MPFR.
    24 
    25 config GDB_CROSS_NO_STATIC
    26     bool
    27     default n
    28 
    29 config GDB_CROSS_STATIC
    30     bool
    31     prompt "Build a static cross gdb"
    32     default n
    33     depends on ! GDB_CROSS_NO_STATIC
    34     help
    35       A static cross gdb can be usefull if you debug on a machine that is
    36       not the one that is used to compile the toolchain.
    37       
    38       That way, you can share the cross-gdb without installing a toolchain
    39       on every machine that will be used to debug target programs.
    40 
    41 config GDB_CROSS_INSIGHT
    42     bool
    43     prompt "Use Insight instead (EXPERIMENTAL)"
    44     default n
    45     depends on EXPERIMENTAL
    46     help
    47       If you say 'Y' here, then Insight will be used to build the cross
    48       debugger, instead of the plain gdb.
    49       
    50       Insight is gdb plus a TCL/TK GUI: http://sourceware.org/insight/
    51 
    52 endif # GDB_CROSS