Bug 25014 - Reloading PIE binaries causes GDB to error
Summary: Reloading PIE binaries causes GDB to error
Status: RESOLVED DUPLICATE of bug 25011
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: 8.2
: P2 normal
Target Milestone: 8.3.1
Assignee: Alan Hayward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-18 17:13 UTC by Alan Hayward
Modified: 2019-09-19 14:38 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Hayward 2019-09-18 17:13:57 UTC
When a binary is built using PIE, reloading the file will cause GDB to error
on restart.  For example:
gdb ./a.out
(gdb) break main
(gdb) run
(gdb) file ./a.out
(gdb) continue

Will cause GDB to error with:
Continuing.
Warning:
Cannot insert breakpoint 1.
Cannot access memory at address 0x9e0
Command aborted.
Comment 1 Alan Hayward 2019-09-19 14:38:39 UTC
Already raised.

*** This bug has been marked as a duplicate of bug 25011 ***