From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4E2363858291; Fri, 17 Feb 2023 02:15:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4E2363858291 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676600116; bh=5D8dNmuBeVANZGWYYNa7QC4Srm94CMKu+mEt4QuhQYA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IzeuHTgXDTgxSjMX+M0pG96JDTWVzezoKnsP2thjUbVlu77j3UVcwnnJ6sjz4diZM vIcZInPYyiJim6Y1Wy+UChknppJ73hy0LV/sSrAVzq0wHPhRekaOklbzDNRDyZPQXH 2Gx7C5R5K2GSHcx6emaWItdts3a/DoIOrPjtBQO4= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug win32/18027] dwarf2 debug info after rebasing DLLs unusable Date: Fri, 17 Feb 2023 02:15:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: win32 X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot 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=3D18027 --- Comment #13 from Tom Tromey --- (In reply to Corinna Vinschen from comment #12) > Isn't there some kind of version information in the DWARF sections somewh= ere? > GDB could use that to distinguish absolute vs. load-address relative DWARF > info. There is, but it's not useful for this. There's no way to tell which linker was in use. > We have to assume that the DLL has been built with debugging symbols. SO > we can safely assume that the DllMain function is always present. It's not unheard of for programs to have some compilations with debuginfo and some without. I tend to think we'll have to do this the way BFD does: just keep trying symbols until we find one that works. --=20 You are receiving this mail because: You are on the CC list for the bug.=