From: Andrew Burgess <aburgess@redhat.com>
To: Simon Marchi <simon.marchi@efficios.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH 2/2] gdb: resolve class name via DW_AT_signature in cooked index
Date: Thu, 24 Sep 2026 11:39:24 +0100 [thread overview]
Message-ID: <874iff2asj.fsf@redhat.com> (raw)
In-Reply-To: <20260924050002.1539783-3-simon.marchi@efficios.com>
Simon,
Thanks for working on this. This looks great, I have a couple of minor
comments.
Simon Marchi <simon.marchi@efficios.com> writes:
> From: Andrew Burgess <aburgess@redhat.com>
I'd be fine if you wanted to change yourself to be the author, you've
put a lot of work into this iteration. But I feel you should at least
add a Co-Authored-By tag if nothing else :)
> diff --git a/gdb/dwarf2/cooked-index-entry.h b/gdb/dwarf2/cooked-index-entry.h
> index 60ea581cbbe5..a2e007b7cf69 100644
> --- a/gdb/dwarf2/cooked-index-entry.h
> +++ b/gdb/dwarf2/cooked-index-entry.h
> @@ -47,6 +47,8 @@ enum cooked_index_flag_enum : unsigned char
> /* True if this is a function that has DW_AT_inline set in a way
> that indicates it was inlined. */
> IS_INLINED = 64,
> + /* True is m_name.deferred has a value rather than m_name.resolved. */
Typo: 'True IF m_name.deferred ....'
> + IS_NAME_DEFERRED = 128,
In cooked-index-entry.c you need to update:
std::string to_string (cooked_index_flag flags)
which converts these flags to strings.
> +
> +/* See cooked-index.h. */
> +
> void
> cooked_index::start_canonicalize_names ()
> {
> @@ -124,10 +207,14 @@ cooked_index::start_canonicalize_names ()
> {
> group.add_task ([this, this_shard = shard.get ()] ()
> {
> + complaint_interceptor complaint_handler;
> +
I think you should add the complaint_interceptor to
cooked_index::start_resolve_deferred_parents and
cooked_index::start_prune_nameless_entries too.
It's not needed in those cases, but it's not needed here either.
My reasoning is that adding it is cheap, especially if no complaints are
emitted, and it's done in a worker thread, so we notice the impact even
less.
But, if we ever add a complaint in the future then you need to remember
to add the complaint_interceptor, or hope someone catches it during
review.
Given we're adding the infrastructure now, lets just add the
complaint_interceptor to all cases, then we're covered for future
growth.
With these fixes:
Approved-By: Andrew Burgess <aburgess@redhat.com>
Thanks,
Andrew
next prev parent reply other threads:[~2026-09-24 10:39 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-19 10:03 [PATCH] [GDB 18] " Andrew Burgess
2026-08-21 17:07 ` Tom Tromey
2026-08-28 21:30 ` [PATCHv2] " Andrew Burgess
2026-09-01 13:31 ` [PATCHv3] " Andrew Burgess
2026-09-10 16:11 ` Simon Marchi
2026-09-11 19:18 ` Tom Tromey
2026-09-12 2:06 ` Simon Marchi
2026-09-14 13:23 ` Andrew Burgess
2026-09-14 14:57 ` Simon Marchi
2026-09-14 15:38 ` Tom Tromey
2026-09-15 10:25 ` Andrew Burgess
2026-09-15 15:01 ` Tom Tromey
2026-09-15 15:55 ` Simon Marchi
2026-09-15 17:21 ` Simon Marchi
2026-09-16 11:40 ` Andrew Burgess
2026-09-16 11:45 ` Andrew Burgess
2026-09-16 11:48 ` Andrew Burgess
2026-09-14 15:36 ` Tom Tromey
2026-09-10 16:18 ` Simon Marchi
2026-09-16 11:38 ` [PATCHv4] " Andrew Burgess
2026-09-22 4:26 ` Simon Marchi
2026-09-23 13:47 ` Simon Marchi
2026-09-24 4:59 ` [PATCH 0/2] " Simon Marchi
2026-09-24 5:05 ` Simon Marchi
2026-09-24 15:09 ` [PATCH v6 0/3] gdb/dwarf: " Simon Marchi
2026-09-24 15:09 ` [PATCH v6 1/3] gdb/dwarf: split cooked index finalization into separate steps Simon Marchi
2026-09-24 15:09 ` [PATCH v6 2/3] gdb/dwarf: resolve class name via DW_AT_signature in cooked index Simon Marchi
2026-09-24 15:09 ` [PATCH v6 3/3] gdb/dwarf: add cooked_index_entry::parent_is_deferred Simon Marchi
2026-09-24 20:53 ` Andrew Burgess
2026-09-25 2:34 ` Simon Marchi
2026-09-24 4:59 ` [PATCH 1/2] gdb: split cooked index finalization into separate steps Simon Marchi
2026-09-24 10:16 ` Andrew Burgess
2026-09-24 14:24 ` Simon Marchi
2026-09-24 4:59 ` [PATCH 2/2] gdb: resolve class name via DW_AT_signature in cooked index Simon Marchi
2026-09-24 10:39 ` Andrew Burgess [this message]
2026-09-24 15:07 ` 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=874iff2asj.fsf@redhat.com \
--to=aburgess@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@efficios.com \
/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