* infrun.c (resume): If the thread is placed to the deferred step
authorVladimir Prus <vladimir@codesourcery.com>
Tue, 19 Aug 2008 13:57:28 +0000 (13:57 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Tue, 19 Aug 2008 13:57:28 +0000 (13:57 +0000)
        queue, mark it as running.

gdb/ChangeLog
gdb/infrun.c

index 35bd2acda734249f5370abf8c1c8e7235ed37b64..5319ac2378a98f49e8c5d8df583bf2652f44a0c2 100644 (file)
@@ -1,3 +1,8 @@
+2008-08-19  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * infrun.c (resume): If the thread is placed to the deferred step
+        queue, mark it as running.
+
 2008-08-19  Vladimir Prus  <vladimir@codesourcery.com>
 
        Make sure target supports non-stop.
index 19b3229abc07f2c452b658c132cdda0a51b0e2c6..5d420043df8a522b8d8e96a5401e128504dfbe40 100644 (file)
@@ -995,7 +995,11 @@ a command like `return' or `jump' to continue execution."));
        {
          /* Got placed in displaced stepping queue.  Will be resumed
             later when all the currently queued displaced stepping
-            requests finish.  */
+            requests finish.  The thread is not executing at this point,
+            and the call to set_executing will be made later.  But we
+            need to call set_running here, since from frontend point of view,
+            the thread is running.  */
+         set_running (inferior_ptid, 1);
          discard_cleanups (old_cleanups);
          return;
        }