Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » gdb pretty printing
gdb pretty printing [message #876917] Fri, 25 May 2012 14:24
Graham Labdon is currently offline Graham LabdonFriend
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
Previous Topic:Problem debugging with J-Link ARM / GDB Server
Next Topic:Hello World! <terminated, exit value: -1073741515>
Goto Forum:
  


Current Time: Fri Apr 19 20:35:54 GMT 2024

Powered by FUDForum. Page generated in 0.02804 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top