From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27099 invoked by alias); 13 Sep 2005 01:28:27 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 27086 invoked by uid 22791); 13 Sep 2005 01:28:23 -0000 Received: from diamondback.brooks.af.mil (HELO diamondback.brooks.af.mil) (140.140.58.5) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 13 Sep 2005 01:28:23 +0000 Received: from citsmr0.brooks.af.mil (citsmr0.brooks.af.mil [140.140.57.198]) by diamondback.brooks.af.mil with SMTP id j8D1VtIf020906 for ; Mon, 12 Sep 2005 20:31:55 -0500 (CDT) Received: from fscnbc16.brooks.af.mil ([140.140.249.121]) by citsmr0.brooks.af.mil (SMSSMTP 4.1.0.19) with SMTP id M2005091220271617800 for ; Mon, 12 Sep 2005 20:27:16 -0500 Received: by FSCNBC16.brooks.af.mil with Internet Mail Service (5.5.2657.72) id ; Mon, 12 Sep 2005 20:27:19 -0500 Message-ID: <6AC29D5306A1CD4AB6A168570B1176A408B8A554@casino.brooks.af.mil> From: Parker James E Contr AFRL/HEDR To: "'gdb@sources.redhat.com'" Subject: Print STL Containers Date: Tue, 13 Sep 2005 01:28:00 -0000 MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2005-09/txt/msg00081.txt.bz2 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...