From: Jan Beulich <jbeulich@suse.com>
To: Alan Modra <amodra@gmail.com>, Nick Clifton <nickc@redhat.com>
Cc: sesse@chromium.org, binutils@sourceware.org,
"Steinar H. Gunderson" <sesse@google.com>
Subject: Re: [PATCH] Add a trie to map quickly from address range to compilation unit.
Date: Mon, 28 Mar 2022 12:19:52 +0200 [thread overview]
Message-ID: <49afcaee-63a8-2d18-64d1-0fc0abfe4669@suse.com> (raw)
In-Reply-To: <Yjz/Ff2AK+KJGqCo@squeak.grove.modra.org>
On 25.03.2022 00:30, Alan Modra via Binutils wrote:
> On Thu, Mar 24, 2022 at 09:01:38AM +0100, Steinar H. Gunderson wrote:
>> On Thu, Mar 24, 2022 at 03:52:27PM +1030, Alan Modra wrote:
>>> Huh, I remember looking at this code a while ago and finding it
>>> confusing. I think the code would be clearer, and behave the same on
>>> normal line number info with the following patch:
>>
>> An interesting question is: Do you want to keep searching through
>> compilation units once you've found a match with a line number?
>> Should we go straight to “goto done” then?
>
> This would be reverting commit 240d6706c6a2. In
> https://sourceware.org/bugzilla/show_bug.cgi?id=15935#c3 I came to the
> conclusion that the pr15935 testcase had bogus debug info and closed
> the bug as invalid. The reporter apparently opened another bug,
> https://sourceware.org/bugzilla/show_bug.cgi?id=15994 a month later
> that Nick fixed by making _bfd_dwarf2_find_nearest_line do extra work.
> Which of course is unnecessary with good debug info, but in many cases
> we try to make binutils give the best result even with bad input. I
> don't know the details beyond that. It might have been that the
> compiler producing the bad debug info was one supported by RedHat.
>
> Now we have pr28592 and others complaining that objdump or addr2line
> have significantly slowed. Given that pr15935 dates back to 2013, I
> would presume that people have moved on from whatever broken compiler
> produced bad line info, and that we should indeed revert commit
> 240d6706c6a2. Nick?
Since I ended up working on that function as well, I did notice another
potentially relevant aspect: The adjustment done back at the time was
only for the case of already processed CUs. The subsequent loop reading
any remaining ones doesn't similarly attempt to find a better match.
IOW the effects of that change can only have been partial anyway.
Jan
next prev parent reply other threads:[~2022-03-28 10:19 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-21 9:40 Steinar H. Gunderson
2022-03-23 14:14 ` Nick Clifton
2022-03-23 15:53 ` Steinar H. Gunderson
2022-03-23 22:24 ` Steinar H. Gunderson
2022-03-24 5:22 ` Alan Modra
2022-03-24 8:01 ` Steinar H. Gunderson
2022-03-24 23:30 ` Alan Modra
2022-03-25 0:01 ` Steinar H. Gunderson
2022-03-28 10:19 ` Jan Beulich [this message]
2022-03-28 23:47 ` Alan Modra
2022-03-29 6:07 ` Jan Beulich
2022-03-31 6:21 ` Steinar H. Gunderson
2022-04-03 11:39 ` Alan Modra
2022-04-04 7:29 ` Steinar H. Gunderson
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=49afcaee-63a8-2d18-64d1-0fc0abfe4669@suse.com \
--to=jbeulich@suse.com \
--cc=amodra@gmail.com \
--cc=binutils@sourceware.org \
--cc=nickc@redhat.com \
--cc=sesse@chromium.org \
--cc=sesse@google.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).