From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2187 invoked by alias); 23 Sep 2013 20:46:05 -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 2158 invoked by uid 48); 23 Sep 2013 20:46:04 -0000 From: "philippe.waroquiers at skynet dot be" To: gdb-prs@sourceware.org Subject: [Bug c++/15975] New: info vtbl does not produce any information and set print vtbl on/off has no effect Date: Mon, 23 Sep 2013 20:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.6 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: philippe.waroquiers at skynet dot be 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 attachments.created 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-q3/txt/msg00389.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=15975 Bug ID: 15975 Summary: info vtbl does not produce any information and set print vtbl on/off has no effect Product: gdb Version: 7.6 Status: NEW Severity: normal Priority: P2 Component: c++ Assignee: unassigned at sourceware dot org Reporter: philippe.waroquiers at skynet dot be Created attachment 7214 --> https://sourceware.org/bugzilla/attachment.cgi?id=7214&action=edit leak_cpp_interior.cpp , simple class hierarchy with MI info vtbl does not produce any information. It is also unclear what 'set print vtbl on' should have as an effect: I cannot see any difference when it is on or off. g++ -g -o leak_cpp_interior leak_cpp_interior.cpp gdb ./leak_cpp_interior break 40 run ... p *ptrBC $1 = {_vptr.B = 0x80489d8 } (gdb) info vtbl ptrBC (gdb) info vtbl *ptrBC (gdb) set print vtbl on (gdb) p *ptrBC $2 = {_vptr.B = 0x80489d8 } (gdb) p *ptrAC $3 = {_vptr.A = 0x80489c8 } (gdb) info vtbl ptrAC (gdb) info vtbl *ptrAC (gdb) Tested on f12/x86, gdb7.6, Same behaviour on ppc64 gcc110 (gdb 7.6, gcc 4.7.2) and on amc64 gcc20 ((gdb 7.6, gcc 4.4.5). -- You are receiving this mail because: You are on the CC list for the bug.