Bug#701935: /usr/lib/debug/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.18-gdb.py: Re: libstdc++6-4.7-dbg: Pretty-printers appear not to load (but do)
I found another patch for the part where the pretty-printers won't load
at all, starting at
<http://sources.debian.net/src/gcc-4.7/4.7.3-7/debian/patches/gcc-multiarch.diff#L3>:
Index: b/src/libstdc++-v3/python/hook.in
===================================================================
--- a/src/libstdc++-v3/python/hook.in
+++ b/src/libstdc++-v3/python/hook.in
@@ -47,7 +47,10 @@
libdir = libdir[len (prefix):]
# Compute the ".."s needed to get from libdir to the prefix.
- dotdots = ('..' + os.sep) * len (libdir.split (os.sep))
+ backdirs = len (libdir.split (os.sep))
+ if not os.path.basename(os.path.dirname(__file__)).startswith('lib'):
+ backdirs += 1 # multiarch subdir
+ dotdots = ('..' + os.sep) * backdirs
objfile = gdb.current_objfile ().filename
dir_ = os.path.join (os.path.dirname (objfile), dotdots, pythondir)
--
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!
Reply to: