[Bug 883269] Re: libstdc++6-*-dbg doesn't contain gdb Python hook
Matthias Klose
doko at ubuntu.com
Wed Dec 7 21:14:41 UTC 2011
not in gcc-4.4
** Changed in: gcc-4.4 (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-4.5 in Ubuntu.
https://bugs.launchpad.net/bugs/883269
Title:
libstdc++6-*-dbg doesn't contain gdb Python hook
Status in “gcc-4.4” package in Ubuntu:
Invalid
Status in “gcc-4.5” package in Ubuntu:
Fix Released
Status in “gcc-4.6” package in Ubuntu:
New
Bug description:
libstdc++6-4.6-dbg and other -dbg packages for libstdc++ include the
new Python pretty printers for debugging STL classes under gdb.
However, they don't get loaded automatically, and require manually
modifying gdb's python's sys.path.
The gcc-snapshot package contains /usr/lib/gcc-
snapshot/lib/libstdc++.so.6.0.17-gdb.py, which causes the pretty
printers to get autoloaded whenever gdb attaches to a process that
links /usr/lib/gcc-snapshot/lib/libstdc++.so.6.0.17.
libstdc++6-4.6-dbg appears to lack this file (which can go either next
to the original library or next to the debug symbols under
/usr/lib/debug), as do the -dbg packages for libstdc++ in other gcc
versions available.
In the gcc source packages, the gdb autoload file is generated in
src/libstdc++-v3/python. The Makefile installs it next to the library,
but I can't follow the gcc packaging well enough to suggest a patch
for non-snapshot builds.
The pretty printers make a huge difference in debugging C++ code that
uses STL containers. It would be very helpful if these were loaded by
default for non-snapshot builds of gcc.
For other examples of auto-loaded debugging code, see python2.7-dbg
(/usr/lib/debug/usr/lib/libpython2.7.so.1.0-gdb.py) and libglib2.0-dev
(/usr/share/gdb/gdb/auto-load/libglib-2.0.so.0.3000.0-gdb.py and
libgobject-2.0.so.0.3000.0-gdb.py)
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: libstdc++6-4.6-dbg 4.6.1-9ubuntu3
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
CheckboxSubmission: d27dbc9ce66475289526ca4b283ec487
CheckboxSystem: bb422ca46d02494cdbc459927a98bc2f
Date: Fri Oct 28 13:39:36 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
SourcePackage: gcc-4.6
UpgradeStatus: Upgraded to oneiric on 2011-09-18 (40 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.4/+bug/883269/+subscriptions
More information about the foundations-bugs
mailing list