From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4908B3858416; Wed, 30 Aug 2023 10:05:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4908B3858416 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693389918; bh=4nsfDdUVHw2xp97w3XiJhKnIb+Ln2lJJuY2fYTUCcak=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SxkLSC9XoL7MZmV9oo8RejgFVsaj6wRU2/VIPhLmD3UNNmGxQAaalFPuGOBF8031r 5lWByzt6pFSkyaQWgMY38GCl2n8Ij0Q9wM6H8+07QF5GUVKsfl/QiGdEQ/nNSON9J6 ouGCWl22D9E1lkoB67PbkmWJidffEIbgSJaFT+qA= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/30810] [gdb/symtab, stabs] gdbtypes.c:5596: internal-error: Unexpected type field location kind: 6 Date: Wed, 30 Aug 2023 10:05:17 +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: vries 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30810 --- Comment #1 from Tom de Vries --- Tentative patch: ... diff --git a/gdb/buildsym.c b/gdb/buildsym.c index 832b689cf03..65ce3a0f5a8 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -267,7 +267,7 @@ buildsym_compunit::finish_block_internal ftype->set_num_fields (nparams); ftype->set_fields ((struct field *) - TYPE_ALLOC (ftype, nparams * sizeof (struct field))); + TYPE_ZALLOC (ftype, nparams * sizeof (struct field))); iparams =3D 0; /* Here we want to directly access the dictionary, because ... --=20 You are receiving this mail because: You are on the CC list for the bug.=