From: Tom de Vries <tdevries@suse.de>
To: "Jan Vraný" <Jan.Vrany@labware.com>, "tom@tromey.com" <tom@tromey.com>
Cc: "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: Thu, 4 Dec 2025 12:42:17 +0100 [thread overview]
Message-ID: <f077099a-e6e4-41d7-99d4-82274798f426@suse.de> (raw)
In-Reply-To: <84386110e9037b89a33f6c00a276d025fed7fb67.camel@labware.com>
On 12/3/25 10:31 PM, Jan Vraný wrote:
> On Wed, 2025-12-03 at 12:36 -0700, Tom Tromey wrote:
>>>>>>> "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.
>
> Yeah, it's weird. The report is here:
>
> https://linaro.atlassian.net/browse/GNU-1767
>
> I did not yet managed to reproduce it. It does not seem to manifest Debian
> armhf running on QEMU. I'm not familiar with ARM ecosystem myself and
> I do not know yet how to arrive at working "armv8l" system. I'll let you
> know when I learn more but just now I'm running out of ideas on how to
> debug this :(
>
I bisected this PR (
https://sourceware.org/bugzilla/show_bug.cgi?id=33679 ) to this commit.
Are the regressions you mention the same issue?
Thanks,
- Tom
> Jan
>
>>
>> Tom
>
next prev parent reply other threads:[~2025-12-04 11:43 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
2025-12-03 21:31 ` Jan Vraný
2025-12-04 11:42 ` Tom de Vries [this message]
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=f077099a-e6e4-41d7-99d4-82274798f426@suse.de \
--to=tdevries@suse.de \
--cc=Jan.Vrany@labware.com \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@efficios.com \
--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