summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/gdb/infrun.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/binutils/gdb/infrun.c')
-rw-r--r--gnu/usr.bin/binutils/gdb/infrun.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/gdb/infrun.c b/gnu/usr.bin/binutils/gdb/infrun.c
index 7cf9953044a..aba6f8ca16e 100644
--- a/gnu/usr.bin/binutils/gdb/infrun.c
+++ b/gnu/usr.bin/binutils/gdb/infrun.c
@@ -2120,6 +2120,11 @@ process_event_stop_test:
code segments in shared libraries might be mapped in now. */
re_enable_breakpoints_in_shlibs ();
+ /* For PIE executables, we dont really know where the
+ breakpoints are going to be until we start up the
+ inferior. */
+ re_enable_breakpoints_at_startup ();
+
/* If requested, stop when the dynamic linker notifies
gdb of events. This allows the user to get control
and place breakpoints in initializer routines for