From 7f7efbd95fbc488424ef541bc1ddb5f3e1964bbb Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Tue, 19 Aug 2008 13:57:28 +0000 Subject: [PATCH] * infrun.c (resume): If the thread is placed to the deferred step queue, mark it as running. --- gdb/ChangeLog | 5 +++++ gdb/infrun.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 35bd2acda73..5319ac2378a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-08-19 Vladimir Prus + + * infrun.c (resume): If the thread is placed to the deferred step + queue, mark it as running. + 2008-08-19 Vladimir Prus Make sure target supports non-stop. diff --git a/gdb/infrun.c b/gdb/infrun.c index 19b3229abc0..5d420043df8 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -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; } -- 2.30.2