* linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.

(linux_resume_one_process): Take a siginfo_t *.  Update all
	callers.  Queue it if necessary.  Use PTRACE_SETSIGINFO.
	(struct pending_signals): Add a siginfo_t.
	(linux_wait_for_process): Always set last_status.
	(linux_wait_for_event): Use PTRACE_GETSIGINFO.
	(linux_queue_one_thread): Use PTRACE_GETSIGINFO.
	* linux-low.h (struct process_info): Add last_status.
This commit is contained in:
Daniel Jacobowitz 2006-09-28 22:46:29 +00:00
parent ef05d49568
commit 32ca6d6157
3 changed files with 55 additions and 9 deletions

View file

@ -92,6 +92,9 @@ struct process_info
event already received in a wait()). */
int stopped;
/* When stopped is set, the last wait status recorded for this process. */
int last_status;
/* If this flag is set, we have sent a SIGSTOP to this process and are
waiting for it to stop. */
int sigstop_sent;