[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gdb and inherited classes
From: |
Edgar Dollin |
Subject: |
gdb and inherited classes |
Date: |
Tue, 27 Feb 2001 17:55:59 -0500 |
If you are running the debugger and need to see the value of a class member
from a derived class, what is the syntax to either print or display the
value?
The ptype command, doesn't include the inherited data.
ptype <class variable name>
The call command, returns 'Couldn't find method (null)text'
call <class variable name>.<member function>()
Thanks for any your help you can provide.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gdb and inherited classes,
Edgar Dollin <=