2003-04-08 Elena Zannoni <ezannoni@redhat.com>

* infrun.c (stop_soon_quietly): Make it an enum, to better
	override the default behavior of handle_inferior_event.
	(clear_proceed_status): Update uses of stop_soon_quietly to
	reflect that it is now an enum.
	(start_remote): Ditto.
	(handle_inferior_event): Change logic a bit if stop_soon_quietly
	is set to handle the new GNU/Linux kernel behavior for
	attach/sigstop.  Update uses of stop_soon_quietly.
	* inferior.h (enum stop_kind): New enum.
	* infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
	Reset normal handle_inferior_event behavior, afterwards.
	* fork-child.c (startup_inferior): Update.
	* alpha-tdep.c (heuristic_proc_start): Update.
	* solib-svr4.c (svr4_solib_create_inferior_hook): Update.
	* solib-sunos.c (sunos_solib_create_inferior_hook): Update.
	* solib-osf.c (osf_solib_create_inferior_hook): Update.
	* solib-irix.c (irix_solib_create_inferior_hook): Update.
	* remote-vx.c (vx_create_inferior): Update.
	* mips-tdep.c (heuristic_proc_start): Update.
This commit is contained in:
Elena Zannoni
2003-04-08 18:52:04 +00:00
parent 9cc92a36ed
commit c54cfec8d4
11 changed files with 75 additions and 27 deletions

View File

@@ -409,7 +409,8 @@ startup_inferior (int ntraps)
#else
while (1)
{
stop_soon_quietly = 1; /* Make wait_for_inferior be quiet */
/* Make wait_for_inferior be quiet */
stop_soon_quietly = STOP_QUIETLY;
wait_for_inferior ();
if (stop_signal != TARGET_SIGNAL_TRAP)
{
@@ -444,5 +445,5 @@ startup_inferior (int ntraps)
}
}
#endif /* STARTUP_INFERIOR */
stop_soon_quietly = 0;
stop_soon_quietly = NO_STOP_QUIETLY;
}