[Bug 1200846] New: Automatic setup of gdb prettyprintters
http://bugzilla.opensuse.org/show_bug.cgi?id=1200846 Bug ID: 1200846 Summary: Automatic setup of gdb prettyprintters Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.4 Hardware: x86-64 OS: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: screening-team-bugs@suse.de Reporter: epasveer@att.net QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Installing libc*-pp-gcc* packages for prettyprinters in gdb. Does not configure gdb to load the prettyprinters by default. Have to add lines to ~/.gdbinit file. % cat ~/.gdbinit python import sys sys.path.insert(0, '/usr/share/gcc-9/python') from libstdcxx.v6.printers import register_libstdcxx_printers register_libstdcxx_printers (None) end % -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1200846 http://bugzilla.opensuse.org/show_bug.cgi?id=1200846#c2 --- Comment #2 from Ernie Pasveer <epasveer@att.net> --- Hi,
If you are talking about the libstdc++6-pp-gcc* packages
Sorry, I did mean those. Not the ones in I mentioned. I will test with the "info auto-load" command you mention. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1200846 http://bugzilla.opensuse.org/show_bug.cgi?id=1200846#c3 Ernie Pasveer <epasveer@att.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME |--- --- Comment #3 from Ernie Pasveer <epasveer@att.net> --- When issuing the "info auto-load", I don't get the same result. erniep@gracie:~$ gdb /usr/bin/zypper ... (gdb) start Temporary breakpoint 1 at 0x893e0 Starting program: /usr/bin/zypper [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". [New Thread 0x7fffee45a700 (LWP 2392)] Thread 1 "Zypp-main" hit Temporary breakpoint 1, 0x00005555554893e0 in main () (gdb) info auto-load gdb-scripts: No auto-load scripts. libthread-db: No auto-loaded libthread-db. local-gdbinit: Local .gdbinit file was not found. python-scripts: Loaded Script Yes /usr/share/gdb/auto-load/usr/lib64/libglib-2.0.so.0.7000.4-gdb.py (gdb) I don't see "libstdc++.so.6.0.29-gdb.py" in the Leap15.4 release. Maybe it's in TW. I have these packages installed. erniep@gracie:~$ zypper search -i | grep libstdc++ i | libstdc++-devel | The system GNU C++ development files | package i+ | libstdc++6 | The standard C++ shared library | package i | libstdc++6-devel-gcc7 | Include Files and Libraries mandatory for Development | package i | libstdc++6-devel-gcc9 | Include Files and Libraries mandatory for Development | package i | libstdc++6-pp-gcc9 | GDB pretty printers for the C++ standard library | package And these files are in the "auto-load" directory. erniep@gracie:~$ ls -l /usr/share/gdb/auto-load/usr/lib64/ total 84 -rw-r--r-- 1 root root 197 May 7 16:40 libglib-2.0.so.0.7000.4-gdb.py -rw-r--r-- 1 root root 200 May 7 16:40 libgobject-2.0.so.0.7000.4-gdb.py -rwxr-xr-x 1 root root 65767 Mar 16 11:17 libpython3.6m.so.1.0-gdb.py -rw-r--r-- 1 root root 2374 Nov 2 2021 libstdc++.so.6.0.24-gdb.py -rw-r--r-- 1 root root 2374 Apr 20 2020 libstdc++.so.6.0.28-gdb.py erniep@gracie:~$ I'm not clear on how the auto-load works. I see these files in /etc. erniep@gracie:~$ ls -lR /etc/gdbinit /etc/gdbinit.d/ -rw-r--r-- 1 root root 211 Jul 28 2019 /etc/gdbinit /etc/gdbinit.d/: total 4 lrwxrwxrwx 1 root root 24 May 1 2020 go.gdb -> /etc/alternatives/go.gdb erniep@gracie:~$ Let me know if you need more information. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1200846 http://bugzilla.opensuse.org/show_bug.cgi?id=1200846#c6 --- Comment #6 from Ernie Pasveer <epasveer@att.net> --- Hi, Here's the result of "rpm -q" erniep@gracie:/peak/src/seer/src$ rpm -q libstdc++6 libstdc++6-11.3.0+git1637-150000.1.9.1.x86_64 And the result of the "ls" command. erniep@gracie:/peak/src/seer/src$ ls -l /usr/lib64/libstdc++.so.* lrwxrwxrwx 1 root root 19 May 4 10:13 /usr/lib64/libstdc++.so.6 -> libstdc++.so.6.0.29 -rwxr-xr-x 1 root root 2161784 May 4 10:17 /usr/lib64/libstdc++.so.6.0.29 erniep@gracie:/peak/src/seer/src$ -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1200846 http://bugzilla.opensuse.org/show_bug.cgi?id=1200846#c10 Tom de Vries <tdevries@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tdevries@suse.com --- Comment #10 from Tom de Vries <tdevries@suse.com> --- FTR, originally filed at https://www.reddit.com/r/gdb/comments/vh1ir4/opensuse_154_and_enabling_gdb_p... -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com