public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/31112] New: DLL export forwarding is broken
@ 2023-12-04 16:33 ssbssa at sourceware dot org
  2023-12-04 16:33 ` [Bug symtab/31112] " ssbssa at sourceware dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ssbssa at sourceware dot org @ 2023-12-04 16:33 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31112

            Bug ID: 31112
           Summary: DLL export forwarding is broken
           Product: gdb
           Version: 14.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: ssbssa at sourceware dot org
  Target Milestone: ---

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 difference can easily be found when printing ExitProcess.
gdb 14.1:
```
(gdb) p ExitProcess
$1 = {<text variable, no debug info>} 0x77644120 <UserHandleGrantAccess+36128>
```
gdb 13.2:
```
(gdb) p ExitProcess
$1 = {<text variable, no debug info>} 0x77734120 <ntdll!RtlExitUserProcess>
```

I tracked the new behavior to this commit:
https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=9675da25357c7a3f472731ddc6eb3becc65b469a

Now the calculated VMA that's used in record_with_info() is an address relative
to forward_dll_name, when before it was relative to dll_name.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-12-06 20:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-04 16:33 [Bug symtab/31112] New: DLL export forwarding is broken ssbssa at sourceware dot org
2023-12-04 16:33 ` [Bug symtab/31112] " ssbssa at sourceware dot org
2023-12-06 19:57 ` cvs-commit at gcc dot gnu.org
2023-12-06 20:14 ` cvs-commit at gcc dot gnu.org
2023-12-06 20:17 ` ssbssa at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).