From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4D5563858C52; Wed, 28 Feb 2024 17:05:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D5563858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1709139901; bh=7VqiM4F/vvFqXtiNtJgM1+5eh5xN/PAF8B/oN9zgqkA=; h=From:To:Subject:Date:From; b=drMGCaxN7RhyjC5BPfOxpOA5vpTyJiHQCSR4qYxx6COmzPyGSQrnzmf0FGoIKXGds Y507cGq6w/MX9QHs9MqNND2DutHxLC9WSq9CsD2FyhCw02Vhns5ttGJssEbR3J2Mju N5tCf7hKr9d8W51IFVtLSoBabTxo6HKzvy6slURc= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug c++/31428] New: ptype should respect "set print vtbl" Date: Wed, 28 Feb 2024 17:05: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: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: 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 target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31428 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 () =3D default; int x =3D 23; }; q qqq; (gdb) set print vtbl on (gdb) ptype q type =3D 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. --=20 You are receiving this mail because: You are on the CC list for the bug.=