FS#29728 - [gcc] libstdc++.so.6.0.17-gdb.py is installed in the wrong directory

Attached to Project: Arch Linux
Opened by Rodrigo Rivas Costa (rodrigorc) - Thursday, 03 May 2012, 16:20 GMT
Last edited by Allan McRae (Allan) - Monday, 07 May 2012, 06:37 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The Python gdb script libstdc++.so.6.0.17-gdb.py is installed in the directory /usr/share/gdb/auto-load/
but gdb searches for it in /usr/share/gdb/auto-load/usr/lib/.

The same is true for a number of other scripts in other packages, such as:
* libisl.so.9.0.0-gdb.py by [isl]
* libglib-2.0.so.0.3200.1-gdb.py, libgobject-2.0.so.0.3200.1-gdb.py by [glib2]


Additional info:
* gcc 4.7.0-5
* isl 0.09-1
* glib2 2.32.1-3

Steps to reproduce:
* Compile a C++ program with `-O0 -g`
* Debug it with gdb. The script is not used.
* You can check where the script is being searched using:
$ strace -o /tmp/tr.txt gdb ./a.out
(gdb) run
(gdb) exit
$ grep "libstdc++.so.6.0.17-gdb.py" /tmp/tr.txt
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 07 May 2012, 06:37 GMT
Reason for closing:  Fixed
Additional comments about closing:  gcc-4.7.0-6
Comment by Allan McRae (Allan) - Friday, 04 May 2012, 01:37 GMT
I am going to standardize these under /usr/lib/debug (e.g /usr/lib/debug/usr/lib/libstdc++.so.6.0.17-gdb.py) as that is where debugging symbol files will be installed if we ever make debug packages...
Comment by Rodrigo Rivas Costa (rodrigorc) - Friday, 04 May 2012, 08:34 GMT
Good idea.

+1 for doing the debug packages. Recompiling them by hand just for that are a PITA. I'm willing to volunteer, if anybody is can direct me a bit, as I'm still new in Arch.
Comment by Allan McRae (Allan) - Saturday, 05 May 2012, 01:38 GMT
isl and glib2 fixed in [testing]. gcc will be fixed when I decide a new 4.7 snapshot is worth building.
Comment by Allan McRae (Allan) - Monday, 07 May 2012, 06:37 GMT
went for /usr/share/gdb/auto-load/<full path> as that is where glib2 automatically puts the file. Also, it is probably good to keep this files separated in their own directory.

Loading...