From: Simon Marchi <simon.marchi@efficios.com>
To: gdb-patches@sourceware.org
Cc: Simon Marchi <simon.marchi@efficios.com>
Subject: [PATCH 0/5] Fix handling of DW_FORM_ref_addr
Date: Tue, 18 Feb 2025 14:31:25 -0500 [thread overview]
Message-ID: <20250218193443.118139-1-simon.marchi@efficios.com> (raw)
The main goal of this series is to fix a bug when handling
DW_FORM_ref_addr, as shown in this bug:
https://sourceware.org/bugzilla/show_bug.cgi?id=29518
This is done in patch 5.
I also noticed that it could happen for the dwarf2_per_bfd::all_units to
no be sorted as we expect. Patch 4 fixes that.
Patch 3 makes the DWARF cooked indexer print CUs and TUs when using
"maint print objfiles", giving some visibility in the DWARF data
structures. Patches 1 and 2 are preparatory patches for that.
Simon Marchi (5):
libiberty: move DW_LANG_* definitions to dwarf2.def
gdb/dwarf: add dwarf_source_language_name
gdb/dwarf: print DWARF CUs/TUs in "maint print objfiles"
gdb/dwarf: sort compile/type units
gdb/dwarf: make dwarf2_find_containing_comp_unit search only
compilation units
gdb/dwarf2/cooked-index.h | 8 +-
gdb/dwarf2/read.c | 94 ++++++++++++++-
gdb/dwarf2/stringify.c | 13 +++
gdb/dwarf2/stringify.h | 3 +
.../dw-form-ref-addr-with-type-units.exp | 108 ++++++++++++++++++
include/dwarf2.def | 89 +++++++++++++++
include/dwarf2.h | 103 ++---------------
libiberty/dwarfnames.c | 9 ++
8 files changed, 324 insertions(+), 103 deletions(-)
create mode 100644 gdb/testsuite/gdb.dwarf2/dw-form-ref-addr-with-type-units.exp
base-commit: 28588dc52c9262b16e8d18e0fab3829797d2c595
--
2.48.1
next reply other threads:[~2025-02-18 19:34 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-18 19:31 Simon Marchi [this message]
2025-02-18 19:31 ` [PATCH 1/5] libiberty: move DW_LANG_* definitions to dwarf2.def Simon Marchi
2025-02-19 16:22 ` Tom Tromey
2025-02-19 17:09 ` Simon Marchi
2025-02-18 19:31 ` [PATCH 2/5] gdb/dwarf: add dwarf_source_language_name Simon Marchi
2025-02-19 16:23 ` Tom Tromey
2025-02-18 19:31 ` [PATCH 3/5] gdb/dwarf: print DWARF CUs/TUs in "maint print objfiles" Simon Marchi
2025-02-19 16:30 ` Tom Tromey
2025-02-24 17:16 ` Simon Marchi
2025-02-18 19:31 ` [PATCH 4/5] gdb/dwarf: sort compile/type units Simon Marchi
2025-02-19 16:51 ` Tom Tromey
2025-02-24 17:30 ` Simon Marchi
2025-02-24 18:09 ` Tom Tromey
2025-02-18 19:31 ` [PATCH 5/5] gdb/dwarf: make dwarf2_find_containing_comp_unit search only compilation units Simon Marchi
2025-02-19 16:55 ` Tom Tromey
2025-02-24 17:38 ` Simon Marchi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250218193443.118139-1-simon.marchi@efficios.com \
--to=simon.marchi@efficios.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).