diff options
author | Pedro Alves <palves@redhat.com> | 2009-03-22 17:59:59 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-03-22 17:59:59 +0000 |
commit | c5a4d20bb945df22e3244f60cff1860932802354 (patch) | |
tree | a58a881ecb6f727cdfd7ceea57a9e2efba44f8d3 /gdb/thread.c | |
parent | 41d2bdb467371e3a18ff8eb69859b1d7cb56a2bd (diff) | |
download | gdb-c5a4d20bb945df22e3244f60cff1860932802354.zip gdb-c5a4d20bb945df22e3244f60cff1860932802354.tar.gz gdb-c5a4d20bb945df22e3244f60cff1860932802354.tar.bz2 |
* gdbthread.h (struct thread_info): Add in_infcall member.
* infcall.c (run_inferior_call): Save, set and restore in_infcall.
Remove reverences to suppress_resume_observer. Refresh
`call_thread' after returning from `proceed'.
* infcmd.c (suppress_resume_observer): Delete.
* inferior.h (suppress_resume_observer): Delete declaration.
* mi/mi-interp.c (mi_on_resume): Suppress output while calling an
inferior function.
* thread.c (set_running): Remove references to
suppress_resume_observer.
* infrun.c (struct inferior_status): Add in_infcall member.
(save_inferior_status): Save it.
(restore_inferior_status): Restore it.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r-- | gdb/thread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/thread.c b/gdb/thread.c index 9dea7c2..52e4428 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -509,8 +509,8 @@ set_running (ptid_t ptid, int running) any_started = 1; tp->state_ = running ? THREAD_RUNNING : THREAD_STOPPED; } - if (any_started && !suppress_resume_observer) - observer_notify_target_resumed (ptid); + if (any_started) + observer_notify_target_resumed (ptid); } else { @@ -521,7 +521,7 @@ set_running (ptid_t ptid, int running) if (running && tp->state_ == THREAD_STOPPED) started = 1; tp->state_ = running ? THREAD_RUNNING : THREAD_STOPPED; - if (started && !suppress_resume_observer) + if (started) observer_notify_target_resumed (ptid); } } |