debug/gdb: fix runtime sysroot 1.11
author"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
Wed May 25 20:23:48 2011 +0200 (2011-05-25)
branch1.11
changeset 2552cc285cc98e65
parent 2472 92b6f966626d
child 2553 fe2c448bf3b7
debug/gdb: fix runtime sysroot

This patch sets the runtime sysroot to fix the following GDB warning:
"Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code."

The sysroot can later be changed within gdb with the `set sysroot`
command if necessary.

Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
(transplanted from 7690196856ce4a4700d1887cc3adf80acc627c52)
scripts/build/debug/300-gdb.sh
     1.1 --- a/scripts/build/debug/300-gdb.sh	Sat May 21 01:10:10 2011 +0200
     1.2 +++ b/scripts/build/debug/300-gdb.sh	Wed May 25 20:23:48 2011 +0200
     1.3 @@ -133,6 +133,7 @@
     1.4              --target=${CT_TARGET}                       \
     1.5              --prefix="${CT_PREFIX_DIR}"                 \
     1.6              --with-build-sysroot="${CT_SYSROOT_DIR}"    \
     1.7 +            --with-sysroot="${CT_SYSROOT_DIR}"          \
     1.8              --disable-werror                            \
     1.9              "${cross_extra_config[@]}"
    1.10