From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 34A503861004; Fri, 6 Aug 2021 19:52:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 34A503861004 From: "cvs-commit at gcc dot gnu.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 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2021 19:52:46 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28159 --- Comment #1 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Tom de Vries : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dcc6b3d766d66= 94d4c4ee14b75f6529365a443a98 commit cc6b3d766d6694d4c4ee14b75f6529365a443a98 Author: Tom de Vries Date: Fri Aug 6 21:52:41 2021 +0200 [gdb/symtab] Recognize .gdb_index symbol table with empty entries as em= pty When reading a .gdb_index that contains a non-empty symbol table with o= nly empty entries, gdb doesn't recognize it as empty. Fix this by recognizing that the constant pool is empty, and then setti= ng the symbol table to empty. Tested on x86_64-linux. gdb/ChangeLog: 2021-08-01 Tom de Vries PR symtab/28159 * dwarf2/read.c (read_gdb_index_from_buffer): Handle symbol tab= le filled with empty entries. gdb/testsuite/ChangeLog: 2021-08-01 Tom de Vries PR symtab/28159 * gdb.dwarf2/dw2-zero-range.exp: Remove kfail. --=20 You are receiving this mail because: You are on the CC list for the bug.=