GDB expects to be able to find a binary's dwp file in the same directory as the binary. [gdb will also search debug-file-directory, but it first looks in the same directory as the binary] But if the binary is actually a symlink to a file in a different directory than the dwp file, then things break. Fission ref: http://gcc.gnu.org/wiki/DebugFission Repro: 1) build binary + binary.dwp 2) mkdir foo 3) ln -s ../binary foo/binary 4) mv binary.dwp foo 5) gdb foo/binary --> gdb can't find binary.dwp
This works for me: Reading symbols from ./Subdir/a... (gdb) maint info bfd Refcount Address Filename 2 0x2fa4b10 /tmp/QQ/Subdir/a.dwp 2 0x2f7ac70 /tmp/QQ/./Subdir/a I suspect it was fixed in bug #15415. *** This bug has been marked as a duplicate of bug 15415 ***