This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/15975] New: info vtbl does not produce any information and set print vtbl on/off has no effect


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]