Bug#323235: fails to find files during debug
martin f krafft writes:
> Package: libstdc++6-4.0-dbg, gdb
> Severity: minor
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 46912505584352 (LWP 21298)]
> 0x00002aaaaad69a65 in sentry (this=0x7fffffffdf00, __os=@0x7fffffffdb80)
> at ostream.tcc:55
> 55 ostream.tcc: No such file or directory.
> in ostream.tcc
> $ wc -l /usr/include/c++/4.0.2/bits/ostream.tcc
> 704 /usr/include/c++/4.0.2/bits/ostream.tcc
> Running gdb with `-d /usr/include/c++/4.0.2/bits` works, but I can
> hardly be expected to pass an option for every subdir of the STL,
> can I?
no, but you can be expected to put the directories into your gdbinit
file, either in your home, or in your project directory.
$ find /usr/include/c++/4.0/ \
\( -name x86_64-linux-gnu -prune \) -o -type d -printf "dir %p\n" \
> Please integrate the -dbg package better with gdb.
I'm not sure, what you mean. You know gdb's "Specifying source
directories" section in the gdb manual?