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

python gdb printer

Tags: None
(comma "," separated)
weiliu620\
Registered Member
Posts
3
Karma
0
OS

python gdb printer

Wed Nov 16, 2011 10:51 pm
This seems a basic question: I've successfully configured the python gdb printer located at eigen/debug/gdb. I can stop at a break point and type 'p M' to print all elements of matrix M. But how can I print some elements of a matrix or vector? I've try 'p M[2,3]' and 'p M(2,3)' and that doesn't work.

Any one have some clue?
Thanks,
Wei
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: python gdb printer

Thu Nov 17, 2011 10:20 pm
you probably have to do the addressing yourself, like:

p M.m_storage.m_data[2+3*<#rows>]


Bookmarks



Who is online

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