From e842223a72b42cb087d8ba304b7b31f5d2131568 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Wed, 28 Nov 2007 12:49:55 +0000 Subject: [PATCH] * infrun.c (resume): Set right thread even if stepping over breakpoint using software single step. --- gdb/ChangeLog | 5 +++++ gdb/infrun.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 17d241ae001..3244ea28302 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-11-28 Vladimir Prus + + * infrun.c (resume): Set right thread even if + stepping over breakpoint using software single step. + 2007-11-28 Nick Roberts * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31. diff --git a/gdb/infrun.c b/gdb/infrun.c index 85d889a5a29..00cd2a54be4 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 -- 2.30.2