aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorAlan Hayward <alan.hayward@arm.com>2019-07-08 10:00:25 +0100
committerAlan Hayward <alan.hayward@arm.com>2019-07-08 10:13:46 +0100
commitea142fbfc9c1708a83d3532257d6728e1f5c142e (patch)
treef352e1434244ad934830c0a0fc50ea63e835a9ae /gdb/ChangeLog
parent62a47958bd6e3cbd909c2f19cd4669a9670ce4f1 (diff)
downloadgdb-ea142fbfc9c1708a83d3532257d6728e1f5c142e.zip
gdb-ea142fbfc9c1708a83d3532257d6728e1f5c142e.tar.gz
gdb-ea142fbfc9c1708a83d3532257d6728e1f5c142e.tar.bz2
Fix breakpoints on file reloads for PIE binaries
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. This is due to the symbol offsets not being relocated after reloading the file. Fix is to ensure solib_create_inferior_hook is called, in the same manner as infrun.c:follow_exec(). Expand the idempotent test to cover PIE scenarios. gdb/ChangeLog: * symfile.c (symbol_file_command): Call solib_create_inferior_hook. gdb/testsuite/ChangeLog: * gdb.base/break-idempotent.exp: Test both PIE and non PIE.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index dfd1041..218bbf6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2019-08-04 Alan Hayward <alan.hayward@arm.com>
+
+ * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
+
2019-07-04 Tom Tromey <tom@tromey.com>
PR tui/24724: