This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA] Make thread in deferred step queue as runing.
- From: Vladimir Prus <vladimir at codesourcery dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 13 Aug 2008 17:49:34 +0400
- Subject: [RFA] Make thread in deferred step queue as runing.
As Pedro noticed some time ago, if we place a thread to deferred step queue,
it should be marked as running, since from frontend point of view, it's already
running. OK?
- Volodya
* infrun.c (resume): If the thread is placed to the deferred step
queue, mark it as running.
---
gdb/infrun.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 559912b..09d6b3c 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -974,7 +974,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 (ptid, 1);
discard_cleanups (old_cleanups);
return;
}
--
1.5.3.5