libstdc++6-*-dbg doesn't contain gdb Python hook
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-4.4 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
gcc-4.5 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
gcc-4.6 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
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/
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+
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/
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: libstdc++6-4.6-dbg 4.6.1-9ubuntu3
ProcVersionSign
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
CheckboxSubmission: d27dbc9ce664752
CheckboxSystem: bb422ca46d02494
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)
This bug was fixed in the package gcc-4.5 - 4.5.3-10ubuntu1
---------------
gcc-4.5 (4.5.3-10ubuntu1) precise; urgency=low
* Merge with Debian.
gcc-4.5 (4.5.3-10) unstable; urgency=low
* Update to SVN 20111206 (r182040) from the gcc-4_5-branch. n/51187, PR target/30282, arm-linux- gnueabihf/ ld-linux. so.3.
- Fix PR c/50565, PR target/49965, PR target/50464, PR target/50091,
PR c++/44473, PR fortran/50659, PR fortran/50273, PR target/51393,
PR debug/48190, PR rtl-optimizatio
PR target/50979, PR target/50875, R target/50691, PR target/50788,
PR target/50737, PR c++/50793, PR c++/50618, PR bootstrap/50888,
PR target/50737.
* For ARM hard float, set the dynamic linker to
/lib/
* Install the libstdc++.so-gdb.py file. LP: #883269.
* Update the Linaro support to the 4.5-2011.12 release.
-- Matthias Klose <email address hidden> Tue, 06 Dec 2011 13:05:02 +0100