Relocate the GDB debug-file directory
Bug #991538 reported by
Michael Hope
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/
(gdb) show debug-file-
The directory where separate debug symbols are searched for is "/cbuild/
GDB has support for this via DEBUGDIR_
To post a comment you must log in.
Note that this is automatically enabled by configure. The implementation is wrong and doesn't take the sysroot into account.