gdb pretty printing

Nathan Huesken kdevelop at lonely-star.org
Wed Jul 7 14:39:43 BST 2010


Hi,

This is not directly Kdevelop related, but the original post
http://lists.kde.org/?l=kdevelop&m=125326438617051&w=2
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/printers.py", 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 printers.py.

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?

Thanks!
Nathan




More information about the KDevelop mailing list