config/debug/gdb.in.cross
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Mar 25 22:42:00 2010 +0100 (2010-03-25)
changeset 1861 a5c020c3d31d
parent 1851 59e178812e8d
child 1914 abbceddd82bb
permissions -rw-r--r--
scripts/populate: properly locate the sysroot and required tools

This fixes two problems:
- the sysroot might be in a sub-directory (think SYSROOT_DIR_PREFIX)
- it is not needed to have the target tuple to properly detect the sysroot
and the required tools

As a side effect, this script is now no longer dependent on the target
tuple, and in the future, we might be able to share it across many
toolchains (when/if we can install all of them in the same place).
     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_USE_MPC
    26     bool
    27     prompt "Use MPC"
    28     default n
    29     select GDB_CROSS_USE_GMP_MPFR
    30     select MPC
    31     select GDB_CROSS_NO_STATIC
    32     help
    33       gdb can use MPC, although it does not seem compulsory.
    34       
    35       Say 'Y' here if you want to use MPC.
    36 
    37 config GDB_CROSS_NO_STATIC
    38     bool
    39     default n
    40 
    41 config GDB_CROSS_STATIC
    42     bool
    43     prompt "Build a static cross gdb"
    44     default n
    45     depends on ! GDB_CROSS_NO_STATIC
    46     help
    47       A static cross gdb can be usefull if you debug on a machine that is
    48       not the one that is used to compile the toolchain.
    49       
    50       That way, you can share the cross-gdb without installing a toolchain
    51       on every machine that will be used to debug target programs.
    52 
    53 config GDB_CROSS_INSIGHT
    54     bool
    55     prompt "Use Insight instead (EXPERIMENTAL)"
    56     default n
    57     depends on EXPERIMENTAL
    58     help
    59       If you say 'Y' here, then Insight will be used to build the cross
    60       debugger, instead of the plain gdb.
    61       
    62       Insight is gdb plus a TCL/TK GUI: http://sourceware.org/insight/
    63 
    64 endif # GDB_CROSS