Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH v2 0/2] [gdb] Enable ptype /o for some dynamic types
@ 2026-03-11 11:55 Tom de Vries
  2026-03-11 11:55 ` [PATCH v2 1/2] [gdb] Factor out is_dynamic_type_internal_1 Tom de Vries
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Tom de Vries @ 2026-03-11 11:55 UTC (permalink / raw)
  To: gdb-patches

This patch series fixes PR33966.

The first patch refactors is_dynamic_types_internal.

The second patch contains the fix.

Tested on x86_64-linux.

Changes in v2:
- committed the first patch of v1
- updated the first patch to not expose the top_level parameter in
  is_dynamic_types
- updated the second patch by:
  - hoisting a check
  - moving the tests to a new testcase gdb.base/ptype-offsets-c.exp

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33966

Tom de Vries (2):
  [gdb] Factor out is_dynamic_type_internal_1
  [gdb] Enable ptype /o for some dynamic types

 gdb/gdbtypes.c                             | 68 ++++++++++++++++++----
 gdb/gdbtypes.h                             |  4 ++
 gdb/testsuite/gdb.ada/ptype-o.exp          |  2 +-
 gdb/testsuite/gdb.base/ptype-offsets-c.c   | 37 ++++++++++++
 gdb/testsuite/gdb.base/ptype-offsets-c.exp | 63 ++++++++++++++++++++
 gdb/typeprint.c                            |  4 +-
 6 files changed, 163 insertions(+), 15 deletions(-)
 create mode 100644 gdb/testsuite/gdb.base/ptype-offsets-c.c
 create mode 100644 gdb/testsuite/gdb.base/ptype-offsets-c.exp


base-commit: fe97d7c31d7e81eec11243e269139a08632d085f
-- 
2.51.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-04-03 13:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-11 11:55 [PATCH v2 0/2] [gdb] Enable ptype /o for some dynamic types Tom de Vries
2026-03-11 11:55 ` [PATCH v2 1/2] [gdb] Factor out is_dynamic_type_internal_1 Tom de Vries
2026-03-11 11:55 ` [PATCH v2 2/2] [gdb] Enable ptype /o for some dynamic types Tom de Vries
2026-03-25 12:48 ` [PING][PATCH v2 0/2] " Tom de Vries
2026-04-02 15:38 ` [PATCH " Guinevere Larsen
2026-04-03 13:20   ` Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox