From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C8FA53858289; Wed, 6 Dec 2023 19:57:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C8FA53858289 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1701892672; bh=q60ijFt19m/0r0NS3UNvIlJr25gSbimd2XHUhfQbuHw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WU/Ark2i3cvse+M70luY/gzK/JIL+LEaCm7NuIpeXXdFRCo7rEvt9xUXwu44GELpR 7Yd4l8fQLjk61Z6fU0Om3kngU7ffXKrx8VDTKOBtE4lE5ZCLi2lOcut9SSg5P3VdfT woauAflSyxjMnKYadizvcmdpfaK36oPfmXpn0pR0= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/31112] DLL export forwarding is broken Date: Wed, 06 Dec 2023 19:57:52 +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: 14.1 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: 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=3D31112 --- Comment #1 from Sourceware Commits --- The master branch has been updated by Hannes Domani : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D2574cd903dd8= 4e7081506e24c2e232ecda11a736 commit 2574cd903dd84e7081506e24c2e232ecda11a736 Author: Hannes Domani Date: Wed Dec 6 20:52:06 2023 +0100 Fix DLL export forwarding I noticed it when I was trying to set a breakpoint at ExitProcess: ``` (gdb) b ExitProcess Breakpoint 1 at 0x14001fdd0 (gdb) r Starting program: C:\qiewer\heob\heob64.exe Warning: Cannot insert breakpoint 1. Cannot access memory at address 0x3dbf4120 Cannot insert breakpoint 1. Cannot access memory at address 0x77644120 ``` The problem doesn't exist in gdb 13.2, and the difference can easily be seen when printing ExitProcess. gdb 14.1: ``` (gdb) p ExitProcess $1 =3D {} 0x77644120 ``` gdb 13.2: ``` (gdb) p ExitProcess $1 =3D {} 0x77734120 ``` The new behavior started with 9675da25357c7a3f472731ddc6eb3becc65b469a, where VMA was then calculated relative to FORWARD_DLL_NAME, while it was relative to DLL_NAME before. Fixed by calculating VMA relative to DLL_NAME again. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31112 Approved-By: Tom Tromey --=20 You are receiving this mail because: You are on the CC list for the bug.=