public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug symtab/27353] [gcc-11] attribute.h:258: internal-error: void attribute::set_unsigned_reprocess(ULONGEST): Assertion `form_requires_reprocessing ()' failed.
Date: Thu, 11 Feb 2021 20:03:07 +0000	[thread overview]
Message-ID: <bug-27353-4717-88Us80VH4z@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-27353-4717@http.sourceware.org/bugzilla/>

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

--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom de Vries <vries@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=05f68f52ef0dc3cc52ee5886509a83f159224eb8

commit 05f68f52ef0dc3cc52ee5886509a83f159224eb8
Author: Tom de Vries <tdevries@suse.de>
Date:   Thu Feb 11 21:03:03 2021 +0100

    [gdb/symtab] Handle DW_FORM_strx in form_requires_reprocessing

    When running test-case gdb.dwarf2/fission-mix.exp using gcc-11, I run into:
    ...
    (gdb) file fission-mix^M
    Reading symbols from fission-mix...^M
    src/gdb/dwarf2/attribute.h:258: internal-error: \
      void attribute::set_unsigned_reprocess(ULONGEST): \
      Assertion `form_requires_reprocessing ()' failed.^M
    ...

    This happens when calling set_unsigned_reprocess on an attribute with form
    DW_FORM_strx.  The assert triggers because DW_FORM_strx is not listed in
    form_requires_reprocessing.

    Fix this by adding DW_FORM_strx in form_requires_reprocessing.

    Tested on x86_64-linux.

    gdb/ChangeLog:

    2021-02-11  Tom de Vries  <tdevries@suse.de>

            PR symtab/27353
            * dwarf2/attribute.c (attribute::form_requires_reprocessing):
            Return true for DW_FORM_strx.

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

  parent reply	other threads:[~2021-02-11 20:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-05 15:09 [Bug symtab/27353] New: " vries at gcc dot gnu.org
2021-02-05 15:20 ` [Bug symtab/27353] " vries at gcc dot gnu.org
2021-02-11 11:00 ` vries at gcc dot gnu.org
2021-02-11 20:03 ` cvs-commit at gcc dot gnu.org [this message]
2021-02-11 20:03 ` 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-27353-4717-88Us80VH4z@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).