PR server/10048

* linux-low.c (must_set_ptrace_flags): Delete.
	(linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
	of the global.
	(linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here.  Set
	`lwp->must_set_ptrace_flags' instead.
	(linux_wait_for_event_1): If ptrace options here.
	(linux_wait_1): ... not here.
This commit is contained in:
Pedro Alves 2009-05-06 17:32:59 +00:00
parent a562dc8f5a
commit a6dbe5dfa5
3 changed files with 30 additions and 13 deletions

View file

@ -146,6 +146,10 @@ struct lwp_info
was a single-step. */
int stepping;
/* If this flag is set, we need to set the event request flags the
next time we see this LWP stop. */
int must_set_ptrace_flags;
/* If this is non-zero, it points to a chain of signals which need to
be delivered to this process. */
struct pending_signals *pending_signals;