From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4941 invoked by alias); 20 Nov 2011 22:42:53 -0000 Received: (qmail 4916 invoked by uid 22791); 20 Nov 2011 22:42:53 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 20 Nov 2011 22:42:39 +0000 From: "mail at milianw dot de" To: gdb-prs@sourceware.org Subject: [Bug mi/13419] New: Unable to pretty-print map of lists Date: Sun, 20 Nov 2011 22:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: mi X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mail at milianw dot de X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2011-q4/txt/msg00383.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13419 Bug #: 13419 Summary: Unable to pretty-print map of lists Product: gdb Version: unknown Status: NEW Severity: normal Priority: P2 Component: mi AssignedTo: unassigned@sourceware.org ReportedBy: mail@milianw.de Classification: Unclassified See also: https://bugs.kde.org/show_bug.cgi?id=257834 Compile the following code: ~~~~~~~~~~ #include #include #include using namespace std; int main() { typedef map > map_t; map_t m; m["one"].push_back("a"); m["one"].push_back("b"); m["one"].push_back("c"); m["two"].push_back("1"); m["two"].push_back("2"); m["two"].push_back("3"); map_t::const_iterator i = m.begin(); i++; return 0; // <= break point on this line // neither "m" nor "i" are displayed in correct way } ~~~~~~~~~~~ Now run it and see how it's not possible to get access to the contents of the map of lists in a sane way using the gdb-mi commands: gdb -i mi ./a.out break 18 // assumes return 0; is on line 18 -var-create - * m // now compare this, esp. note the 'value="{...}"' -var-list-children --all-values var1 // with this print m // similarily compare the output of this: -var-create - * i // with the output of print i -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.