public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug symtab/29561] [gdb/symtab] During symbol reading: file index out of range
Date: Thu, 08 Sep 2022 14:51:19 +0000	[thread overview]
Message-ID: <bug-29561-4717-oZWqM6bPUR@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-29561-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=29561

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
With bisect narrowing in on a window of 17 commits, my bet is on:
...
commit 6d263fe46e00afd8af3d609c1afd71d05eaf745e
Author: Tom Tromey <tromey@adacore.com>
Date:   Thu Jan 13 09:48:18 2022 -0700

    Avoid bad breakpoints with --gc-sections

    We found a case where --gc-sections can cause gdb to set an invalid
    breakpoint.  In the included test case, gdb will set a breakpoint with
    two locations, one of which is 0x0.

    The code in lnp_state_machine::check_line_address is intended to
    filter out this sort of problem, but in this case, the entire CU is
    empty, causing unrelocated_lowpc==0x0 -- which circumvents the check.

    It seems to me that if a CU is empty like this, then it is ok to
    simply ignore the line table, as there won't be any locations anyway.
...

Indeed the line table is empty for the CU, but the file table is not.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2022-09-08 14:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-08 12:13 [Bug symtab/29561] New: " vries at gcc dot gnu.org
2022-09-08 12:17 ` [Bug symtab/29561] " vries at gcc dot gnu.org
2022-09-08 14:51 ` vries at gcc dot gnu.org [this message]
2022-09-08 15:24 ` vries at gcc dot gnu.org
2022-09-08 15:37 ` vries at gcc dot gnu.org
2022-09-08 17:33 ` vries at gcc dot gnu.org
2022-09-09  6:52 ` vries at gcc dot gnu.org
2022-09-17  6:28 ` vries at gcc dot gnu.org

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=bug-29561-4717-oZWqM6bPUR@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /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).