* infrun.c (resume): Set right thread even if
authorVladimir Prus <vladimir@codesourcery.com>
Wed, 28 Nov 2007 12:49:55 +0000 (12:49 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Wed, 28 Nov 2007 12:49:55 +0000 (12:49 +0000)
stepping over breakpoint using software single step.

gdb/ChangeLog
gdb/infrun.c

index 17d241ae00187fdb9263b9733047c49c6924077b..3244ea28302fca84531b2492af9b041850368b9c 100644 (file)
@@ -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.
index 85d889a5a29f043a2ca653faa8614745a46abeea..00cd2a54be4e16f9b35e87ecc7a72da54e6ff5f2 100644 (file)
@@ -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