From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 882 invoked by alias); 19 Dec 2012 21:56:15 -0000 Received: (qmail 864 invoked by uid 48); 19 Dec 2012 21:56:15 -0000 From: "tromey at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug mi/13041] Virtual base class botch Date: Wed, 19 Dec 2012 21:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: mi X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey 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-Changed-Fields: Status Message-ID: In-Reply-To: References: 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: 2012-q4/txt/msg00446.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13041 Tom Tromey changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #8 from Tom Tromey 2012-12-19 21:56:14 UTC --- I can definitely make this test case do something wrong-ish. First, I removed the bad "using" and changed the line to "Top top;". I'll attach mine in a bit. Then I set a breakpoint in sc_module_init and ran. (Making sure to use gdb -nx...) Then: (gdb) up #1 0x0000000000400a5e in sc_module::sc_module (this=0x7fffffffe3c0) at pr.cc:10 10 sc_module_init(); (gdb) #2 0x0000000000400eda in Top::Top (this=0x7fffffffe3c0) at pr.cc:57 57 Top(){}; (gdb) p *this $4 = { = {}, cpu = warning: can't find linker symbol for virtual table for `CPU' value { = { = , = , }, = {}, }, ram = warning: can't find linker symbol for virtual table for `RAM' value { = {}, = { = , = , = , = , }, }} It seems like gdb is confused by a partially-construct object. It isn't totally clear to me whether this is related to the original bug, but I'm reopening nonetheless. -- 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.