public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/31428] New: ptype should respect "set print vtbl"
@ 2024-02-28 17:05 tromey at sourceware dot org
0 siblings, 0 replies; only message in thread
From: tromey at sourceware dot org @ 2024-02-28 17:05 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=31428
Bug ID: 31428
Summary: ptype should respect "set print vtbl"
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: c++
Assignee: unassigned at sourceware dot org
Reporter: tromey at sourceware dot org
Target Milestone: ---
With "set print vtbl on", I think ptype should also show
the vtable.
struct q {
virtual ~q () = default;
int x = 23;
};
q qqq;
(gdb) set print vtbl on
(gdb) ptype q
type = struct q {
public:
int x;
~q();
}
It would also be nice to have a ptype flag to enable this
per-use.
Finally, perhaps ptype/o should always show the vtables, since
the point of this is to understand the layout of the object in
memory.
--
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:[~2024-02-28 17:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-28 17:05 [Bug c++/31428] New: ptype should respect "set print vtbl" tromey at sourceware dot org
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).