[arch-general] *-gdb.py files are misplaced

Rodrigo Rivas rodrigorivascosta at gmail.com
Thu May 3 04:39:44 EDT 2012


Hello.

I am debugging a C++ program with GDB and I want to use the nice Python
scripts for pretty-printing the STL types. But, alas, it does not work.

This script is installed in "/usr/share/gdb/auto-load/libstdc++.
so.6.0.17-gdb.py"  to handle the pretty printing of STL types.
But the fact is that GDB does not load it. Doing a quick "strace gdb
./a.out" I find that it looks for the file in:

/usr/share/gdb/auto-load/usr/lib/libstdc++.so.6.0.17-gdb.py

Note the "usr/lib/" into the "auto-load" directory. (BTW, the GDB
documentation seem to say that it should read it from yet another
directory.)

Right now I patched it by creating a few symbolic links into the
"auto-load" directory.

I'd like to file a bug report, but I'm new to Arch Linux, so I'm asking for
advice:

Should I file a bug report for each of the packages that install a file in
this directory? Also, I think that some of them may come this way from
upstream, but
Currently, I've detected the following packages that install files there:
glib2, isl and gcc

Or should I file a bug into GDB itself?

Thank you in advance.
--
Rodrigo


More information about the arch-general mailing list