aboutsummaryrefslogtreecommitdiff
path: root/gdb/thread.c
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-06-13 20:19:19 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-06-13 20:19:19 +0000
commit8f6a8e8417fa1e8191993f4869628460605e6221 (patch)
tree3e380f8cf21b6666371b7e76d15eb8e93f73de04 /gdb/thread.c
parentfa452fa6833cbb3088361ac35f4c51716afde520 (diff)
downloadgdb-8f6a8e8417fa1e8191993f4869628460605e6221.zip
gdb-8f6a8e8417fa1e8191993f4869628460605e6221.tar.gz
gdb-8f6a8e8417fa1e8191993f4869628460605e6221.tar.bz2
Don't suppress *running when doing finish.
* infcall.c (call_function_by_hand): Set both suppress_resume_observer and suppress_stop_observer. * infcmd.c (suppress_run_stop_observers): Split into... (suppress_resume_observer, suppress_stop_observer): ...those. (finish_command_continuation): Clear suppress_stop_observer. (finish_command): Set suppress_stop_observer. * inferior.h (suppress_run_stop_observers): Split into... (suppress_resume_observer, suppress_stop_observer): ...those. * infrun.c (normal_stop): Check for suppress_stop_observer. * thread.c (set_running): Check for suppress_resume_observer.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r--gdb/thread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/thread.c b/gdb/thread.c
index 64d41eb..80d745d 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -431,7 +431,7 @@ set_running (ptid_t ptid, int running)
the main thread is always present in the thread list. If it's
not, the first call to context_switch will mess up GDB internal
state. */
- if (running && !main_thread_running && !suppress_run_stop_observers)
+ if (running && !main_thread_running && !suppress_resume_observer)
observer_notify_target_resumed (ptid);
main_thread_running = running;
return;
@@ -449,14 +449,14 @@ set_running (ptid_t ptid, int running)
any_started = 1;
tp->running_ = running;
}
- if (any_started && !suppress_run_stop_observers)
+ if (any_started && !suppress_resume_observer)
observer_notify_target_resumed (ptid);
}
else
{
tp = find_thread_pid (ptid);
gdb_assert (tp);
- if (running && !tp->running_ && !suppress_run_stop_observers)
+ if (running && !tp->running_ && !suppress_resume_observer)
observer_notify_target_resumed (ptid);
tp->running_ = running;
}