public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15975] New: info vtbl does not produce any information and set print vtbl on/off has no effect
@ 2013-09-23 20:46 philippe.waroquiers at skynet dot be
0 siblings, 0 replies; only message in thread
From: philippe.waroquiers at skynet dot be @ 2013-09-23 20:46 UTC (permalink / raw)
To: gdb-prs
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 <vtable for C+24>}
(gdb) info vtbl ptrBC
(gdb) info vtbl *ptrBC
(gdb) set print vtbl on
(gdb) p *ptrBC
$2 = {_vptr.B = 0x80489d8 <vtable for C+24>}
(gdb) p *ptrAC
$3 = {_vptr.A = 0x80489c8 <vtable for C+8>}
(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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-09-23 20:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-23 20:46 [Bug c++/15975] New: info vtbl does not produce any information and set print vtbl on/off has no effect philippe.waroquiers at skynet dot be
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).