From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9B8A0385829D; Thu, 18 Jan 2024 20:37:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B8A0385829D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1705610257; bh=GCnyEPreHMi5JLAehpn4tvLiugNQBMy0g4jf5+NK+ew=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rAnNkspzr/UjZtE6nV5oA2WKijGHACo7ZkHFRS6aNYaNNB8dgvfo5J/rZ2EM9i0zh j51odoIsTqwHMwxpRxpYd1m6vUT49P4IGeUnvdfgek0thZASy2s5o2juIyRNeLvOn0 kj9Yzb49KL0HfUqfaKO5A0faKiSh7K3qqT8ieRIM= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/25950] [debug-names] Handle no "Hash Lookup Table" Date: Thu, 18 Jan 2024 20:37:36 +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: tromey 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D25950 --- Comment #2 from Sourceware Commits --- The master branch has been updated by Tom Tromey : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D3a862152958a= 1d17742cef7fc43c4d51dd2dcbab commit 3a862152958a1d17742cef7fc43c4d51dd2dcbab Author: Tom Tromey Date: Mon Dec 4 07:58:48 2023 -0700 Empty hash table fix in .debug_names reader The handling of an empty hash table in the .debug_names reader is slightly wrong. Currently the code assumes there is always an array of hashes. However, section 6.1.1.4.5 Hash Lookup Table says: The optional hash lookup table immediately follows the list of type signatures. and then: The hash lookup table is actually two separate arrays: an array of buckets, followed immediately by an array of hashes. My reading of this is that the hash table as a whole is optional, and so the hashes will not exist in this case. (This also makes sense because the hashes are not useful without the buckets anyway.) Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D25950 --=20 You are receiving this mail because: You are on the CC list for the bug.=