gdb pretty printing

Nathan Huesken kdevelop at
Wed Jul 7 14:39:43 BST 2010


This is not directly Kdevelop related, but the original post
come over this mailinglist.

I am trying to get stl pretty printing in gdb to work. But when I
follow the instructions given in the mail above, I get:

Traceback (most recent call last):
  File "<string>", line 4, in <module>
  File "/home/ls/gdb_printers/python/libstdcxx/v6/", line
647, in register_libstdcxx_printers obj = gdb
NameError: global name 'gdb' is not defined
/home/ls/.gdbinit:6: Error in sourced command file:
Error while executing Python code.

Which I thought had to do with
#import gdb
beeing commented out at the beginning of

So I tried to comment it in, but the gdb module is not found.

My gdb version is:
GNU gdb (Gentoo 7.1 p1) 7.1
I am on gentoo linux.

What am I missing?


More information about the KDevelop mailing list