gdb stdlib pretty print

153 views
Skip to first unread message

Sunny Sachanandani

unread,
Mar 10, 2015, 6:27:59 PM3/10/15
to Chromium-dev
Hi,

I have noticed that since some time gdb pretty printing for c++ stdlib types is broken on my linux workstation. When I start gdb, I get these messages:

Unable to determine compiler version.
Skipping loading of libstdc++ pretty-printers for now.

I'm building using clang on goma and my .gdbinit is minimal - it only loads the pretty printers for chromium.

Is anyone else seeing this?

Thanks!

Stefan Zager

unread,
Mar 10, 2015, 7:11:59 PM3/10/15
to sun...@chromium.org, Chromium-dev

I see that as well.


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.

Sunny Sachanandani

unread,
Mar 10, 2015, 8:30:18 PM3/10/15
to Stefan Zager, Chromium-dev
Turns out this is a bug with gdb configuration on goobuntu (and maybe even an upstream bug with ubuntu/debian). For now a quick workaround is to add these lines to your .gdbinit (assuming ubuntu):

python
import sys
sys.path.insert(0, "/usr/share/gdb/python/")
from libstdcxx.v6.printers import register_libstdcxx_printers
register_libstdcxx_printers(None)

Reply all
Reply to author
Forward
0 new messages