Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/3] Support DWARF 5 .debug_sup section
@ 2025-03-23 19:19 Tom Tromey
  2025-03-23 19:20 ` [PATCH 1/3] Remove 'read' call from dwz_file::read_string Tom Tromey
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Tom Tromey @ 2025-03-23 19:19 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

This is a refresh of a patch I sent a long time ago and then forgot
about:

https://sourceware.org/pipermail/gdb-patches/2021-February/176508.html

It adds support for the DWARF 5 .debug_sup section and related forms.

See patch #3 for testing.  I regression tested this on x86-64 Fedora
40, comparing the new "dwz -5" results against a "dwz -m" baseline.

There are a handful of regressions, due to the decision about build-id
that's noted in patch #2.

Signed-off-by: Tom Tromey <tom@tromey.com>
---
Tom Tromey (3):
      Remove 'read' call from dwz_file::read_string
      Handle DWARF 5 separate debug sections
      Add "-5" flag to cc-with-tweaks

 gdb/contrib/cc-with-tweaks.sh                 |   5 +-
 gdb/dwarf2/attribute.c                        |   5 +-
 gdb/dwarf2/attribute.h                        |  14 +-
 gdb/dwarf2/cooked-indexer.c                   |   4 +-
 gdb/dwarf2/die.c                              |   3 +
 gdb/dwarf2/dwz.c                              | 193 +++++++++++++++++++++-----
 gdb/dwarf2/dwz.h                              |  25 ++--
 gdb/dwarf2/macro.c                            |   1 +
 gdb/dwarf2/read.c                             |  19 ++-
 gdb/dwarf2/read.h                             |   8 +-
 gdb/testsuite/boards/cc-with-dwz-5.exp        |  28 ++++
 gdb/testsuite/gdb.dwarf2/dwzbuildid.exp       | 159 +--------------------
 gdb/testsuite/gdb.dwarf2/dwzbuildid.tcl       | 184 ++++++++++++++++++++++++
 gdb/testsuite/gdb.dwarf2/dwzbuildid5.exp      |  17 +++
 gdb/testsuite/gdb.dwarf2/dwznolink.exp        |   2 +-
 gdb/testsuite/gdb.dwarf2/no-gnu-debuglink.exp |   2 +-
 gdb/testsuite/lib/dwarf.exp                   |  18 +++
 17 files changed, 469 insertions(+), 218 deletions(-)
---
base-commit: df1ed5c0d4935c62b8951fd83a1e37e775ba90a5
change-id: 20250323-dwz-dwarf-5-v2-7d84ad21b045

Best regards,
-- 
Tom Tromey <tom@tromey.com>


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

end of thread, other threads:[~2025-04-28 11:35 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-23 19:19 [PATCH 0/3] Support DWARF 5 .debug_sup section Tom Tromey
2025-03-23 19:20 ` [PATCH 1/3] Remove 'read' call from dwz_file::read_string Tom Tromey
2025-03-24 14:25   ` Alexandra Petlanova Hajkova
2025-03-24 20:30   ` Simon Marchi
2025-03-24 20:52     ` Tom Tromey
2025-03-23 19:20 ` [PATCH 2/3] Handle DWARF 5 separate debug sections Tom Tromey
2025-03-24 15:45   ` Alexandra Petlanova Hajkova
2025-03-24 17:16     ` Tom Tromey
2025-04-03 14:39       ` Tom Tromey
2025-04-22 14:55         ` Tom Tromey
2025-04-22 15:10           ` Simon Marchi
2025-04-28 11:35             ` Tom de Vries
2025-03-24 20:52   ` Simon Marchi
2025-03-25 13:37     ` Tom Tromey
2025-03-23 19:20 ` [PATCH 3/3] Add "-5" flag to cc-with-tweaks Tom Tromey

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