config/debug/gdb.in.cross
author Zhenqiang Chen <zhenqiang.chen@linaro.org>
Wed Nov 23 13:15:27 2011 +0800 (2011-11-23)
changeset 2784 258160822e35
parent 2717 13df2720b374
child 2856 7723b8457efa
permissions -rw-r--r--
debug/gdb: add extra config for gdb cross.

Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>
[yann.morin.1998@anciens.enib.fr: prompt rewording, as suggested by M. Hope]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 # Menu for the cross GDB
     2 
     3 config STATIC_TOOLCHAIN
     4     select GDB_CROSS_STATIC if GDB_CROSS
     5 
     6 config GDB_CROSS
     7     bool
     8     prompt "Cross-gdb"
     9     default y
    10     select GDB_GDBSERVER if ! BARE_METAL
    11     help
    12       Build and install a cross-gdb for the target, to run on host.
    13 
    14 if GDB_CROSS
    15 
    16 config GDB_CROSS_STATIC
    17     bool
    18     prompt "Build a static cross gdb"
    19     select WANTS_STATIC_LINK
    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_PYTHON
    28     bool
    29     prompt "Enable python scripting"
    30     depends on ! GDB_CROSS_STATIC
    31     default y
    32     help
    33       Say 'y' if you want to use Python scripting inside gdb.
    34       Say 'n' if you do not want to.
    35       
    36       Beware that enabling Python scripting could render the gdb
    37       executable non-functional if you move it to another machine.
    38       Building a static gdb can help in this regard, although there
    39       have been reports of problems when linking gdb to the static
    40       libpython.a. This should be fixed in gdb >=7.3. YMMV.
    41 
    42 config GDB_CROSS_EXTRA_CONFIG_ARRAY
    43     string
    44     prompt "Cross-gdb extra config"
    45     default ""
    46     help
    47       Extra flags to pass onto ./configure when configuring the gdb cross.
    48 
    49 endif # GDB_CROSS