public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Print STL Containers
@ 2005-09-13  1:28 Parker James E Contr AFRL/HEDR
  0 siblings, 0 replies; only message in thread
From: Parker James E Contr AFRL/HEDR @ 2005-09-13  1:28 UTC (permalink / raw)
  To: 'gdb@sources.redhat.com'

I would like to print the contents of C++ STL Containers using gdb.

I compiled my code with -D_GLIBCXX_DEBUG and it provides some help examining
the containers.

also the command

gdb> p *( foo_iterator->_M_current) 

prints the structure, but I can't seem to dereference the nodes in a list.
Any help would be appreciated.

I apologize if this is trivial, but I'm not having any luck finding an
answer in the old forum posts...

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-09-13  1:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-13  1:28 Print STL Containers Parker James E Contr AFRL/HEDR

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).