public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Parker James E Contr AFRL/HEDR <James.Parker.ctr@brooks.af.mil>
To: "'gdb@sources.redhat.com'" <gdb@sources.redhat.com>
Subject: Print STL Containers
Date: Tue, 13 Sep 2005 01:28:00 -0000	[thread overview]
Message-ID: <6AC29D5306A1CD4AB6A168570B1176A408B8A554@casino.brooks.af.mil> (raw)

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

                 reply	other threads:[~2005-09-13  1:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6AC29D5306A1CD4AB6A168570B1176A408B8A554@casino.brooks.af.mil \
    --to=james.parker.ctr@brooks.af.mil \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).