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/28159] [gdb/symtab] gdb generates .gdb_index with only empty hashtable entries, then fails to recognize it as empty
Date: Fri, 06 Aug 2021 19:52:45 +0000	[thread overview]
Message-ID: <bug-28159-4717-65xxvgPcR8@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-28159-4717@http.sourceware.org/bugzilla/>

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

--- Comment #1 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=cc6b3d766d6694d4c4ee14b75f6529365a443a98

commit cc6b3d766d6694d4c4ee14b75f6529365a443a98
Author: Tom de Vries <tdevries@suse.de>
Date:   Fri Aug 6 21:52:41 2021 +0200

    [gdb/symtab] Recognize .gdb_index symbol table with empty entries as empty

    When reading a .gdb_index that contains a non-empty symbol table with only
    empty entries, gdb doesn't recognize it as empty.

    Fix this by recognizing that the constant pool is empty, and then setting
the
    symbol table to empty.

    Tested on x86_64-linux.

    gdb/ChangeLog:

    2021-08-01  Tom de Vries  <tdevries@suse.de>

            PR symtab/28159
            * dwarf2/read.c (read_gdb_index_from_buffer): Handle symbol table
            filled with empty entries.

    gdb/testsuite/ChangeLog:

    2021-08-01  Tom de Vries  <tdevries@suse.de>

            PR symtab/28159
            * gdb.dwarf2/dw2-zero-range.exp: Remove kfail.

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

  reply	other threads:[~2021-08-06 19:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-01 11:26 [Bug symtab/28159] New: " vries at gcc dot gnu.org
2021-08-06 19:52 ` cvs-commit at gcc dot gnu.org [this message]
2021-08-06 22:23 ` [Bug symtab/28159] " vries at gcc dot gnu.org
2021-08-14 21:35 ` tromey at sourceware dot org
2021-08-24 12:18 ` vries at gcc dot gnu.org
2021-08-26 12:39 ` vries at gcc dot gnu.org
2021-08-30 14:10 ` vries at gcc dot gnu.org
2021-08-30 14:11 ` 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-28159-4717-65xxvgPcR8@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).