This is the mail archive of the insight@sourceware.org mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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>}



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]