public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH gdb/symtab 0/7] Compute DWARF entry parents across CUs
@ 2024-01-17 18:58 Tom Tromey
  2024-01-17 18:58 ` [PATCH gdb/symtab 1/7] Refactor condition in scan_attributes Tom Tromey
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Tom Tromey @ 2024-01-17 18:58 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom de Vries

This is a different approach to a patch series that Tom de Vries sent.
The bug here is that gdb won't always correctly compute the parent of
an entry in some cross-CU reference cases.

I've included a few of Tom's patches in this series.  The main
difference overall is that this one incorporates the parent
computation into the finalization loop, so the work is parallelized.

Regression tested on x86-64 Fedora 38 with the cc-with-dwz board.
There is still one bug (the inlining one), but I believe that one
requires a different fix.

---
Tom Tromey (4):
      Change handling of DW_TAG_enumeration_type in DWARF scanner
      Add move operators for addrmap
      Introduce class parent_map for DIE range map
      Correctly handle DIE parent computations

Tom de Vries (3):
      [gdb/symtab] Refactor condition in scan_attributes
      [gdb/testsuite] Add gdb.dwarf2/forward-spec-inter-cu.exp
      [gdb/testsuite] Add gdb.dwarf2/backward-spec-inter-cu.exp

 gdb/addrmap.c                                      |  12 +-
 gdb/addrmap.h                                      |  19 ++-
 gdb/dwarf2/cooked-index.c                          |  13 +-
 gdb/dwarf2/cooked-index.h                          |  52 ++++++--
 gdb/dwarf2/parent-map.h                            | 132 +++++++++++++++++++++
 gdb/dwarf2/read.c                                  | 113 +++++++-----------
 .../gdb.dwarf2/backward-spec-inter-cu.exp          | 103 ++++++++++++++++
 gdb/testsuite/gdb.dwarf2/forward-spec-inter-cu.exp | 103 ++++++++++++++++
 8 files changed, 458 insertions(+), 89 deletions(-)
---
base-commit: 2002c0099f9fb4d737930acd66733cfad39f68f1
change-id: 20240117-die-map-madness-b84a75473c85

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


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

end of thread, other threads:[~2024-01-17 18:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-17 18:58 [PATCH gdb/symtab 0/7] Compute DWARF entry parents across CUs Tom Tromey
2024-01-17 18:58 ` [PATCH gdb/symtab 1/7] Refactor condition in scan_attributes Tom Tromey
2024-01-17 18:58 ` [PATCH 2/7] Change handling of DW_TAG_enumeration_type in DWARF scanner Tom Tromey
2024-01-17 18:58 ` [PATCH 3/7] Add move operators for addrmap Tom Tromey
2024-01-17 18:58 ` [PATCH 4/7] Introduce class parent_map for DIE range map Tom Tromey
2024-01-17 18:58 ` [PATCH 5/7] Correctly handle DIE parent computations Tom Tromey
2024-01-17 18:58 ` [PATCH gdb/testsuite 6/7] Add gdb.dwarf2/forward-spec-inter-cu.exp Tom Tromey
2024-01-17 18:58 ` [PATCH gdb/testsuite 7/7] Add gdb.dwarf2/backward-spec-inter-cu.exp Tom Tromey

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).