* infcall.c (run_inferior_call): Remove references to

suppress_stop_observer.
	* infcmd.c (suppress_stop_observer): Delete.
	(finish_command_continuation): Remove NOTE.  Don't clear
	suppress_stop_observer anymore.
	(finish_command_continuation_free_arg): Likewise.
	(finish_forward): Remove references to suppress_stop_observer.
	Call normal_stop observer if we haven't already.
	* inferior.h (suppress_stop_observer): Delete.
	* infrun.c (normal_stop): When deciding to suppress the
	normal_stop observer, check for proceed_to_finish instead of
	suppress_stop_observer.
This commit is contained in:
Pedro Alves
2009-03-22 17:57:11 +00:00
parent 065a2c74b5
commit 41d2bdb467
5 changed files with 42 additions and 28 deletions

View File

@@ -331,7 +331,6 @@ run_inferior_call (struct thread_info *call_thread, CORE_ADDR real_pc)
volatile struct gdb_exception e;
int saved_async = 0;
int saved_suppress_resume_observer = suppress_resume_observer;
int saved_suppress_stop_observer = suppress_stop_observer;
ptid_t call_thread_ptid = call_thread->ptid;
char *saved_target_shortname = xstrdup (target_shortname);
@@ -344,7 +343,6 @@ run_inferior_call (struct thread_info *call_thread, CORE_ADDR real_pc)
saved_async = target_async_mask (0);
suppress_resume_observer = 1;
suppress_stop_observer = 1;
TRY_CATCH (e, RETURN_MASK_ALL)
proceed (real_pc, TARGET_SIGNAL_0, 0);
@@ -355,7 +353,6 @@ run_inferior_call (struct thread_info *call_thread, CORE_ADDR real_pc)
call_thread = NULL;
suppress_resume_observer = saved_suppress_resume_observer;
suppress_stop_observer = saved_suppress_stop_observer;
/* Don't restore the async mask if the target has changed,
saved_async is for the original target. */