From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 50CE43858D32; Tue, 19 Sep 2023 09:49:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 50CE43858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1695116984; bh=1dZDUEMdjmtBj6n0NswnaFJYN7zYL3xnlBGR6tIO1IY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UoWpcnt43tgfgBxhw93VPlXiQWCTxlPX85jHacxdC2AJoo0bXy96MiesZi8NH8PMg wSCyKzMvC3XEC7cVuag+8CsY9/9YlbIJr0Njh4REENQ+zh/KFu4xp65RvqfnIaYG4b SMU9ns4xm3f8mPqX0hUQsvbAawr8aQ5QpY698Oq4= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/30871] [gdb/symtab] Means to control finding debuginfo (without/with sysroot prefix) Date: Tue, 19 Sep 2023 09:49:43 +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: enhancement 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=3D30871 --- Comment #1 from Tom de Vries --- Put differently, with this patch applied: ... diff --git a/gdb/build-id.c b/gdb/build-id.c index f68384f0197..1ab9fd8b4c5 100644 --- a/gdb/build-id.c +++ b/gdb/build-id.c @@ -174,6 +174,7 @@ build_id_to_bfd_suffix (size_t build_id_len, const bfd_= byte *build_id, if (debug_bfd !=3D NULL) return debug_bfd; +#if 0 /* Try to look under the sysroot as well. If the sysroot is "/the/sysroot", it will give "/the/sysroot/usr/lib/debug/.build-id/ab/cdef.debug". */ @@ -185,6 +186,7 @@ build_id_to_bfd_suffix (size_t build_id_len, const bfd_= byte *build_id, if (debug_bfd !=3D NULL) return debug_bfd; } +#endif } return {}; ... no test-case in the test suite starts failing. --=20 You are receiving this mail because: You are on the CC list for the bug.=