This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
How to do 'set print object on' for Insight
- From: Franz <fs_kazike at yahoo dot com>
- To: insight at sources dot redhat dot com
- Date: Thu, 13 Apr 2006 13:44:51 +0000 (UTC)
- Subject: How to do 'set print object on' for Insight
With 'set print object on' I can tell gdb to display the actual (derived) type
of the object rather than the declared type, using the virtual function table.
How can I do that in Insight so that I see the actual (derived) type of the
object in the watch window.
Example in GDB:
(gdb) set print object off
(gdb) p *next
$4 = {
_vptr$CipStep = 0x4cac3c,
m_aPosition = {
m_nLine = 15,
m_nColumn = 1
}
}
(gdb) set print object on
(gdb) p *next
$5 = (ciptest::InputMessage) {
<ciptest::Message> = {
<ciptest::CipStep> = {
_vptr$CipStep = 0x4cac3c,
m_aPosition = {
m_nLine = 15,
m_nColumn = 1
}
},
members of ciptest::Message:
m_aId = 12334,
m_aData = 50000
},<No data fields>}