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]

Re: Printing STL List Entries in GDB


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.


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