diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2007-11-28 12:49:55 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2007-11-28 12:49:55 +0000 |
commit | e842223a72b42cb087d8ba304b7b31f5d2131568 (patch) | |
tree | eb928e82cb26dfc1d26d917149d43a9ad446ad21 /gdb/infrun.c | |
parent | be9fd9f5fc618e42c1c5597358bec0bc287f8d40 (diff) | |
download | gdb-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.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 3 |
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 |