Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/6] Type unit + split DWARF fixes  (PR 33307)
@ 2025-11-07 21:10 Simon Marchi
  2025-11-07 21:10 ` [PATCH 1/6] gdb/testsuite/dwarf: use single abbrev table in .dwo files Simon Marchi
                   ` (5 more replies)
  0 siblings, 6 replies; 28+ messages in thread
From: Simon Marchi @ 2025-11-07 21:10 UTC (permalink / raw)
  To: gdb-patches; +Cc: Simon Marchi

This series fixes a regression that I introduced a few months ago,
causing a crash in very specific circumstances: type unit in a .dwo file
+ stub in the main file + gdb index.  Luckily, this was caught by test
gdb.dwarf2/fission-reread.exp when ran with the cc-with-gdb-index board.

Patches 1-3 are improvements to the testsuite DWARF assembler, allowing
to generate better type units and split DWARF tests.

Patch 4 fixes the reported crash.

Patch 5 fixes another case of the same crash, for which I provide a test
/ reproducer.

Patch 6 is a trivial cleanup.

Simon Marchi (6):
  gdb/testsuite/dwarf: use single abbrev table in .dwo files
  gdb/testsuite/dwarf: convert _section proc to use parse_options
  gdb/testsuite/dwarf: emit type unit sections as COMDAT
  gdb/dwarf: when in dwarf2_cu, read addr_size from dwarf2_cu::header
  gdb/dwarf: store addr/offset/ref_addr sizes in dwarf2_per_cu
  gdb/dwarf: use dwarf2_per_cu::ref_addr_size in one spot

 gdb/dwarf2/cu.c                               |   7 +-
 gdb/dwarf2/read.c                             |  71 ++------
 gdb/dwarf2/read.h                             |  56 ++++--
 .../gdb.dwarf2/fission-type-unit-locexpr.c    |  25 +++
 .../gdb.dwarf2/fission-type-unit-locexpr.exp  | 161 ++++++++++++++++++
 .../gdb.dwarf2/fission-with-type-unit.exp     |  29 ++--
 gdb/testsuite/lib/dwarf.exp                   | 132 +++++++++++---
 7 files changed, 362 insertions(+), 119 deletions(-)
 create mode 100644 gdb/testsuite/gdb.dwarf2/fission-type-unit-locexpr.c
 create mode 100644 gdb/testsuite/gdb.dwarf2/fission-type-unit-locexpr.exp


base-commit: 767c92a13e92d3c34b8ed6f3b6f1bf17eca57cbd
-- 
2.51.2


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

end of thread, other threads:[~2025-11-21 21:27 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-07 21:10 [PATCH 0/6] Type unit + split DWARF fixes (PR 33307) Simon Marchi
2025-11-07 21:10 ` [PATCH 1/6] gdb/testsuite/dwarf: use single abbrev table in .dwo files Simon Marchi
2025-11-10 20:14   ` Simon Marchi
2025-11-18 13:32     ` Andrew Burgess
2025-11-18 16:50       ` Simon Marchi
2025-11-18 16:55   ` Andrew Burgess
2025-11-18 17:20     ` Simon Marchi
2025-11-19 16:05       ` Tom Tromey
2025-11-19 20:21         ` Simon Marchi
2025-11-07 21:10 ` [PATCH 2/6] gdb/testsuite/dwarf: convert _section proc to use parse_options Simon Marchi
2025-11-19 10:59   ` Andrew Burgess
2025-11-19 15:53   ` Tom Tromey
2025-11-19 20:40     ` Simon Marchi
2025-11-19 21:03       ` Tom Tromey
2025-11-07 21:10 ` [PATCH 3/6] gdb/testsuite/dwarf: emit type unit sections as COMDAT Simon Marchi
2025-11-19 11:43   ` Andrew Burgess
2025-11-07 21:10 ` [PATCH 4/6] gdb/dwarf: when in dwarf2_cu, read addr_size from dwarf2_cu::header Simon Marchi
2025-11-19 14:30   ` Andrew Burgess
2025-11-19 20:46     ` Simon Marchi
2025-11-19 16:11   ` Tom Tromey
2025-11-19 20:51     ` Simon Marchi
2025-11-07 21:10 ` [PATCH 5/6] gdb/dwarf: store addr/offset/ref_addr sizes in dwarf2_per_cu Simon Marchi
2025-11-19 14:42   ` Andrew Burgess
2025-11-19 16:14   ` Tom Tromey
2025-11-21 19:54     ` Simon Marchi
2025-11-21 21:25       ` Tom Tromey
2025-11-07 21:10 ` [PATCH 6/6] gdb/dwarf: use dwarf2_per_cu::ref_addr_size in one spot Simon Marchi
2025-11-19 14:44   ` Andrew Burgess

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