aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2007-11-28 12:49:55 +0000
committerVladimir Prus <vladimir@codesourcery.com>2007-11-28 12:49:55 +0000
commite842223a72b42cb087d8ba304b7b31f5d2131568 (patch)
treeeb928e82cb26dfc1d26d917149d43a9ad446ad21
parentbe9fd9f5fc618e42c1c5597358bec0bc287f8d40 (diff)
downloadgdb-e842223a72b42cb087d8ba304b7b31f5d2131568.zip
gdb-e842223a72b42cb087d8ba304b7b31f5d2131568.tar.gz
gdb-e842223a72b42cb087d8ba304b7b31f5d2131568.tar.bz2
* infrun.c (resume): Set right thread even if
stepping over breakpoint using software single step.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/infrun.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 17d241a..3244ea2 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-28 Vladimir Prus <vladimir@codesourcery.com>
+
+ * infrun.c (resume): Set right thread even if
+ stepping over breakpoint using software single step.
+
2007-11-28 Nick Roberts <nickrob@snap.net.nz>
* mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
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