gdb pretty printing [message #876917] |
Fri, 25 May 2012 14:24 |
Graham Labdon Messages: 32 Registered: October 2010 |
Member |
|
|
Hi
I am experimenting with gdb pretty printing with python with some success
If I have this class declared in my program
class MyClass
{
public:
MyClass(int a,int b) : m_a(a),m_b(b) {}
~MyClass() {}
private:
int m_a;
int m_b;
};
Now I want to pretty print this class such that the members m_a and m_b appear separately in the Variables debugger tab but don't seem to be able to do this as the to_string function in the python code only returns one value.
I know that gdb will do this on its own but this is an experiment to lead to more complex data structure.
Can anyone help me?
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.02804 seconds