From: Kevin Buettner <kevinb@redhat.com>
To: Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Remove a call to blockvector::map
Date: Sat, 22 Nov 2025 18:10:28 -0700 [thread overview]
Message-ID: <20251122180737.52f34c49@f41-zbm-amd> (raw)
In-Reply-To: <20251119214559.1468541-1-tom@tromey.com>
On Wed, 19 Nov 2025 14:45:59 -0700
Tom Tromey <tom@tromey.com> wrote:
> block_starting_point_at checks blockvector::map before doing a lookup.
>
> This patch removes this call, a step toward making the blockvector API
> a bit more opaque. It arranges to find the necessary blockvector just
> once, in gather_inline_frames, and then uses the 'lookup' method to
> find the desired block.
>
> Note that this is a slight change of semantics, in that the old code
> looked only in the map while the new code looks in the blockvector,
> regardless of whether a map was made. However, I don't think this
> should matter, and furthermore this seems like an abstraction
> violation, with the inline-frame code knowing details of how buildsym
> decided to create the blockvector.
>
> in the longer run, I think only the 'lookup' method should be provided
> by blockvector -- that is, separately checking the map should be
> impossible. The idea here is that eventually, for lazy CU expansion,
> we will want to be able to expand the blockvector. This may be easier
> with a different underlying data structure, so perhaps the map will go
> away entirely. After this patch, one such use remains.
>
> Regression tested on x86-64 Fedora 40.
LGTM.
Approved-by: Kevin Buettner <kevinb@redhat.com>
prev parent reply other threads:[~2025-11-23 1:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-19 21:45 Tom Tromey
2025-11-23 1:10 ` Kevin Buettner [this message]
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=20251122180737.52f34c49@f41-zbm-amd \
--to=kevinb@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=tom@tromey.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