config/debug/gdb.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed May 21 22:00:52 2008 +0000 (2008-05-21)
changeset 527 4ac12179ef23
parent 457 578fdd250fcc
child 573 2a1803b98186
permissions -rw-r--r--
Introduce target-specific LDFLAGS, the same way we have CFLAGS for the target.
It seems to be helping gcc somewhat into telling the correct endianness to ld that sticks with little endian even when the target is big (eg armeb-unknown-linux-uclibcgnueabi).
There's still work to do, especially finish the gcc part that is not in this commit.

/trunk/scripts/functions | 9 7 2 0 +++++++--
1 file changed, 7 insertions(+), 2 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     help
    17       Build and install a cross-gdb for the target, and to run on host.
    18 
    19 config GDB_CROSS_STATIC_GDB
    20     bool
    21     prompt "Build a static cross gdb"
    22     default n
    23     depends on GDB_CROSS
    24     help
    25       A static cross gdb can be usefull if you debug on a machine that is
    26       not the one that is used to compile.
    27 
    28 config GDB_CROSS_STATIC_GDBSERVER
    29     bool
    30     prompt "Build a static gdbserver"
    31     default n
    32     depends on GDB_CROSS
    33     help
    34       In case you have trouble with dynamic loading of shared libraries,
    35       you will find that a static gdbserver comes in handy.
    36 
    37 config GDB_NATIVE
    38     bool
    39     prompt "Native gdb (EXPERIMENTAL)"
    40     default n
    41     depends on EXPERIMENTAL
    42     help
    43       Build and install a native gdb for the target, to run on the target.
    44 
    45 choice
    46     bool
    47     prompt "gdb version"
    48 
    49 config GDB_V_snapshot
    50     bool
    51     prompt "snapshot (EXPERIMENTAL)"
    52     depends on EXPERIMENTAL
    53 
    54 config GDB_V_6_4
    55     bool
    56     prompt "6.4 (OBSOLETE)"
    57     depends on OBSOLETE
    58 
    59 config GDB_V_6_5
    60     bool
    61     prompt "6.5"
    62 
    63 config GDB_V_6_6
    64     bool
    65     prompt "6.6"
    66 
    67 config GDB_V_6_7
    68     bool
    69     prompt "6.7 (EXPERIMENTAL)"
    70     depends on EXPERIMENTAL
    71 
    72 config GDB_V_6_7_1
    73     bool
    74     prompt "6.7.1 (EXPERIMENTAL)"
    75     depends on EXPERIMENTAL
    76 
    77 config GDB_V_6_8
    78     bool
    79     prompt "6.8 (EXPERIMENTAL)"
    80     depends on EXPERIMENTAL
    81 
    82 # CT_INSERT_VERSION_ABOVE
    83 # Don't remove above line!
    84 endchoice
    85 
    86 config GDB_VERSION
    87     string
    88     default "snapshot" if GDB_V_snapshot
    89     default "6.4" if GDB_V_6_4
    90     default "6.5" if GDB_V_6_5
    91     default "6.6" if GDB_V_6_6
    92     default "6.7" if GDB_V_6_7
    93     default "6.7.1" if GDB_V_6_7_1
    94     default "6.8" if GDB_V_6_8
    95 # CT_INSERT_VERSION_STRING_ABOVE
    96 # Don't remove above line!
    97 
    98 endif
    99