debug/gdb: fix runtime sysroot
author"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
Wed May 25 20:23:48 2011 +0200 (2011-05-25)
changeset 24767690196856ce
parent 2475 62c563f492ec
child 2477 fbc0869bb7c8
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>
scripts/build/debug/300-gdb.sh
     1.1 --- a/scripts/build/debug/300-gdb.sh	Tue May 24 14:15:47 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