Relocate the GDB debug-file directory

Bug #991538 reported by Michael Hope
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Toolchain Binaries
Triaged
High
Unassigned

Bug Description

The sysroots use the separate debug file feature of GDB which lets the debug information be shipped in /usr/lib/debug instead of as part of the file itself.

GDB handles cross debug and properly relocates the sysroot. It doesn't relocate the debug file directory:

(gdb) show sysroot
The current system root is "/home/michaelh/linaro/binary/check/2012.04/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/arm-linux-gnueabi/libc".

(gdb) show debug-file-directory
The directory where separate debug symbols are searched for is "/cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/install/lib/debug".

GDB has support for this via DEBUGDIR_RELOCATABLE. Enable and test.

Revision history for this message
Michael Hope (michaelh1) wrote :

Note that this is automatically enabled by configure. The implementation is wrong and doesn't take the sysroot into account.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.