From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 452B1385703A; Wed, 24 Aug 2022 07:29:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 452B1385703A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1661326194; bh=5b2emTCcJok194Rgi6WI+Kw8wpAtqGFDLmaugsY5FrY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LsdB1ZJjeacyRxORovoT0P66/h9Ac30E8q6MzIMFC0JUeHKT+y+lwHSC8bbhZ5tsZ Tcb/iffp5kLCn7ReqJO0+iaSLS6K4XsAB1psWfa4G3j9pAtXs/0joyC4Rm+sM1CO6e 7fcWEIDgu9Jc6nnULkaAj1kHbuTpp68IAiqitDSc= From: "clayborg at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/29518] GDB doesn't handle DW_FORM_ref_addr DIE references correctly with .debug_types sections Date: Wed, 24 Aug 2022 07:29:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: clayborg at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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=3D29518 --- Comment #2 from Greg Clayton --- Another way to fix this would be to artificially increase the "sect_offset"= of any type units from .debug_types that are added to the "dwarf2_per_bfd::all_comp_units" to start at sizeof(.debug_info) + .debug_t= ypes offset. If there are multiple .debug_types sections, then you would need to increase any subsequent ones by the previous sizes. Since type units can on= ly have CU relative references and there is nothing that can reference anything inside of the type unit from outside the type unit, it would most likely be harmless. This would allow the "dwarf2_per_bfd::all_comp_units" to stay sor= ted as things are added. --=20 You are receiving this mail because: You are on the CC list for the bug.=