Printing STL List Entries in GDB

Paolo Carlini pcarlini@suse.de
Tue Jun 26 07:26:00 GMT 2007


Eric Chun wrote:

> I tried using single quotes as well, but it still won't print the value:
>    p (('std::_List_node' *) $curNode)->_M_data
>    No symbol "std::_List_node" in current context.
> Do I need to the type of list entries I'm trying to print?

Well, _List_node is a template, therefore you have. Maybe you can follow 
another route and do better, certainly quotes are needed.

Paolo.



More information about the Libstdc++ mailing list