This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Printing STL List Entries in GDB


Does anybody know how to print list entries in gdb? I've tried all the following:
set $curNode = &$list->_M_impl._M_node
p ((_List_node *) $curNode)->_M_data
p ((std::_List_node_base *) $curNode)->_M_data
p *($curNode)
but none of these give me the value of the list entries.




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