aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 85d889a..00cd2a5 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -605,7 +605,8 @@ a command like `return' or `jump' to continue execution."));
resume_ptid = inferior_ptid;
}
- if (step && breakpoint_here_p (read_pc ())
+ if ((step || singlestep_breakpoints_inserted_p)
+ && breakpoint_here_p (read_pc ())
&& !breakpoint_inserted_here_p (read_pc ()))
{
/* We're stepping, have breakpoint at PC, and it's