From: Tom Tromey <tom@tromey.com>
To: "Jan Vraný" <Jan.Vrany@labware.com>
Cc: "tom@tromey.com" <tom@tromey.com>,
"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
"simon.marchi@efficios.com" <simon.marchi@efficios.com>
Subject: Re: [pushed] gdb: change blockvector::contains() to handle blockvectors with "holes"
Date: Wed, 03 Dec 2025 12:36:08 -0700 [thread overview]
Message-ID: <87sedr73yv.fsf@tromey.com> (raw)
In-Reply-To: <c6310f717f3c75b2643124e29f7c2ddf785657b0.camel@labware.com> ("Jan =?utf-8?Q?Vran=C3=BD=22's?= message of "Tue, 2 Dec 2025 21:58:38 +0000")
>>>>> "Jan" == Jan Vraný <Jan.Vrany@labware.com> writes:
>> FWIW it seems to me that the blockvector should just have a single
>> lookup function, and it should be used to find precisely the code block
>> containing the given address. That is, it should never return the
>> static or global block, since those aren't really "code" but instead
>> just containing scopes. This is the direction I was trying to head by
>> removing calls to map(); the one remaining call is one of these weird
>> ones...
Jan> I agree, I just do not really understand why there was the
Jan> difference in first place.
I don't really, either. That code is pretty old, though, and some of
the older code is pretty questionable. Like sometimes problems with
debug readers were worked around in core code rather than being solved
in the reader, abstractions were very leaky (or in this case
nonexistent), etc.
Jan> In fact, it seems that it matters - I've got a report that this
Jan> commit caused regression on arm (still investigating, I do not have
Jan> armhf system at hand, so need to set it up first).
My current attempt at cleanups here also run into some regressions that
I wasn't really expecting :(
Anyway I'd find it interesting to learn what the ARM regression is
about.
Tom
next prev parent reply other threads:[~2025-12-03 19:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-28 13:49 [pushed] gdb: update blockvector::lookup Jan Vrany
2025-11-28 13:49 ` [pushed] gdb: change blockvector::contains() to handle blockvectors with "holes" Jan Vrany
2025-12-02 17:41 ` Tom Tromey
2025-12-02 21:58 ` Jan Vraný
2025-12-03 19:36 ` Tom Tromey [this message]
2025-12-03 21:31 ` Jan Vraný
2025-12-04 11:42 ` Tom de Vries
2025-12-04 15:03 ` Jan Vraný
2025-11-28 13:49 ` [pushed] gdb: add unittests for blockvector lookup functions Jan Vrany
2025-11-28 13:49 ` [pushed] gdb: update is_addr_in_objfile to support "dynamic" objfiles Jan Vrany
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=87sedr73yv.fsf@tromey.com \
--to=tom@tromey.com \
--cc=Jan.Vrany@labware.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