config/debug/gdb.in.cross
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Nov 23 21:35:28 2010 +0100 (2010-11-23)
branch1.9
changeset 2198 6d909657dbdf
parent 1916 e5b635bb9290
child 2209 cdafca8bdaa8
permissions -rw-r--r--
scripts/xldd: better find sysroot with old gcc

Only starting with 4.4 does gcc have a -print-sysroot option.
For 4.3 or before, we have to play some tricks:
- ask gcc where libc.so is,
(we expect it in ${sysroot}/usr/lib/libc.so)
- trim /usr/lib/libc.so from the result

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from aa2305c5b2a57fbcda9a1b5bb5fb3a476ac49a13)
yann@1849
     1
# Menu for the cross GDB
yann@96
     2
yann@96
     3
config GDB_CROSS
yann@96
     4
    bool
yann@96
     5
    prompt "Cross-gdb"
yann@96
     6
    default y
yann@850
     7
    select GDB_GDBSERVER if ! BARE_METAL
yann@96
     8
    help
yann@583
     9
      Build and install a cross-gdb for the target, to run on host.
yann@96
    10
yann@1849
    11
if GDB_CROSS
yann@1849
    12
yann@1915
    13
config GDB_CROSS_STATIC
yann@1915
    14
    bool
yann@1915
    15
    prompt "Build a static cross gdb"
yann@1915
    16
    default n
yann@1915
    17
    help
yann@1915
    18
      A static cross gdb can be usefull if you debug on a machine that is
yann@1915
    19
      not the one that is used to compile the toolchain.
yann@1915
    20
      
yann@1915
    21
      That way, you can share the cross-gdb without installing a toolchain
yann@1915
    22
      on every machine that will be used to debug target programs.
yann@1915
    23
yann@1849
    24
endif # GDB_CROSS