From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3370 invoked by alias); 24 Nov 2013 18:25:25 -0000 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 Received: (qmail 3344 invoked by uid 48); 24 Nov 2013 18:25:24 -0000 From: "jan.kratochvil at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug mi/16213] New: -var-update still keeps "var1." Date: Sun, 24 Nov 2013 18:25: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-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jan.kratochvil at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-q4/txt/msg00387.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16213 Bug ID: 16213 Summary: -var-update still keeps "var1." Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: mi Assignee: unassigned at sourceware dot org Reporter: jan.kratochvil at redhat dot com Target: x86_64-unknown-linux-gnu Eclipse fails to print local std::set variable. I believe it is a GDB MI bug. FAIL: gdb-7.6.1-46.fc19.x86_64 FAIL: GNU gdb (GDB) 7.6.50.20131124-cvs Why GDB still insists on "var1." even after -var-update? Removing earlier 32-var-list-children var1 fixes the problem, it then prints: 99^done,numchild="1",children=[child={name="var1.[0]",exp="[0]",numchild="1",type="C",thread-id="1"}],has_more="0" ------------------------------------------------------------------------------ #include class C { public: int i; C(int *ip):i(*ip) {} }; namespace std { template<> bool less::operator()(const C &a,const C &b) const { return a.i xxxvariable; xxxvariable.insert(C(&i)); return 0; } ------------------------------------------------------------------------------ gdb -i=mi ",exp="",numchild="36",type="char [36]",thread-id="1"}],has_more="0" -- You are receiving this mail because: You are on the CC list for the bug.