This forum has been archived. All content is frozen. Please use KDE Discuss instead.

gdb pretty printer

Tags: None
(comma "," separated)
dmeiser
Registered Member
Posts
2
Karma
0
OS

gdb pretty printer

Thu Sep 29, 2011 3:52 pm
Hi all,

This is probably a pretty stupid question but I haven't been able to find an answer by searching the web or the forum: How do I activate the gdb pretty printer? I'm using eigen-3.0.2 under Fedora 14 and my version of gdb is 7.2-51. Thanks a lot in advance.

Cheers,
Dominic
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: gdb pretty printer

Thu Sep 29, 2011 8:18 pm
from the file itself:

# To use it:
#
# * Create a directory and put the file as well as an empty __init__.py in
# that directory.
# * Create a ~/.gdbinit file, that contains the following:
# python
# import sys
# sys.path.insert(0, '/path/to/eigen/printer/directory')
# from printers import register_eigen_printers
# register_eigen_printers (None)
# end
dmeiser
Registered Member
Posts
2
Karma
0
OS

Re: gdb pretty printer

Thu Sep 29, 2011 9:21 pm
Thanks.
Dominic


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]