[PATCH 2 of 2] cross-gdb: fix runtime sysroot

Benoît THÉBAUDEAU benoit.thebaudeau@advansee.com
Tue May 24 11:22:00 GMT 2011


# HG changeset patch
# User "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
# Date 1306235541 -7200
# Node ID 6f6493d05f127328c6168f0a381dbc1080f070c2
# Parent  420687b63c9775201e84e40f76b4c176996e3bda
cross-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>

diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh
--- a/scripts/build/debug/300-gdb.sh
+++ b/scripts/build/debug/300-gdb.sh
@@ -161,6 +161,7 @@
             --target=${CT_TARGET}                       \
             --prefix="${CT_PREFIX_DIR}"                 \
             --with-build-sysroot="${CT_SYSROOT_DIR}"    \
+            --with-sysroot="${CT_SYSROOT_DIR}"          \
             --disable-werror                            \
             "${cross_extra_config[@]}"
 


More information about the crossgcc mailing list