From: Jim Wilson <jim.wilson.gcc@gmail.com>
To: Tom Tromey <tromey@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Ignore 0,0 entries in .debug_aranges
Date: Fri, 10 Jun 2022 10:00:02 -0700 [thread overview]
Message-ID: <CALNwTfyUQ1r_uMbXTq0-3PNArb=La8YubARO8FVpF5hw_kwdhQ@mail.gmail.com> (raw)
In-Reply-To: <20220414153916.3468409-1-tromey@adacore.com>
On Thu, Apr 14, 2022 at 8:39 AM Tom Tromey via Gdb-patches <
gdb-patches@sourceware.org> wrote:
> When running the internal AdaCore test suite against the new DWARF
> indexer, I found one regression on RISC-V. The test in question uses
> --gc-sections, and winds up with an entry in the middle of a
> .debug_aranges that has both address and length of 0. In this
> scenario, gdb assumes the entries are terminated and then proceeds to
> reject the section because it reads a subsequent entry as if it were a
> header.
>
FYI There is also an elfutils bug for this.
https://sourceware.org/bugzilla/show_bug.cgi?id=27805
I don't think the elfutils problem has been fixed yet. I did notice that I
got different results for RISC-V and x86_64. RISC-V gave me 0,0 pairs
which is wrong, but x86_64 gave me 0,4 pairs which is OK. I don't know why
the difference; I didn't investigate.
Jim
prev parent reply other threads:[~2022-06-10 17:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-14 15:39 Tom Tromey
2022-04-14 17:04 ` Pedro Alves
2022-06-10 17:00 ` Jim Wilson [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='CALNwTfyUQ1r_uMbXTq0-3PNArb=La8YubARO8FVpF5hw_kwdhQ@mail.gmail.com' \
--to=jim.wilson.gcc@gmail.com \
--cc=gdb-patches@sourceware.org \
--cc=tromey@adacore.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).