config/debug/gdb.in.native
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Sep 07 01:22:37 2011 +0200 (2011-09-07)
changeset 2653 e5fc5c9ea78a
parent 2098 9a8f0e3fe605
child 2717 13df2720b374
permissions -rw-r--r--
scripts: fix sysroot prefix dir

The sysroot prefix dir was broken in #4960f5d9f829 due to a mishap
when making the out-of-sysroot lib/ symlink: the './' was mistakenly
changed into a single '.' .

Although Jonathan suggested restoring the missing '/' to restore it to
normal operation, I prefered using an explicit pushd/popd to be extra
sure of the symlink location and target, along with a fix in the sysroot
relative directory calculation.

Reported-by: Jonathan Grundon <JGrundon@xos.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 # Menu for the native GDB
     2 
     3 config GDB_NATIVE
     4     bool
     5     prompt "Native gdb"
     6     depends on ! BARE_METAL
     7     depends on ! BACKEND
     8     help
     9       Build and install a native gdb for the target, to run on the target.
    10 
    11 if GDB_NATIVE
    12 
    13 config GDB_NATIVE_NO_STATIC
    14     bool
    15 
    16 config GDB_NATIVE_STATIC
    17     bool
    18     prompt "Build a static native gdb"
    19     depends on ! GDB_NATIVE_NO_STATIC
    20     help
    21       In case you have trouble with dynamic loading of shared libraries,
    22       you will find that a static gdb comes in handy.
    23 
    24 endif # GDB_NATIVE