[PATCH] RFC: enable pretty printers for --enable-libstdcxx-debug libs

Jonathan Wakely jwakely@redhat.com
Thu Jun 22 15:19:00 GMT 2017


The --enable-libstdcxx-debug option builds extra versions of libstdc++
without optimisation and installs them in $libdir/debug, which can be
used via RPATH or LD_LIBRARY_PATH. However, there's no gdb.py
installed alongside those debug versions of the libs, so while you can
step into unoptimised libstdc++ code in GDB, you can't use the pretty
printers.

This patch installs a symlink in $libdir/debug pointing to the gdb.py
file in the parent dir, and adjusts the gdb.py file to handle the
$libdir/debug case. This seems to work. An alternative would be to
install a modified copy of the gdb.py file specific to that directory,
instead of a symlink to a file that works for either case.

Better ideas are welcome.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 1390 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170622/2563094b/attachment.bin>


More information about the Gcc-patches mailing list