Add members pl_sigmask and pl_siglist into ptrace_lwpinfo to get lwp's

signal mask and pending signals.
This commit is contained in:
davidxu 2006-02-06 09:41:56 +00:00
parent fd420369b1
commit c6ce9ab57e
2 changed files with 6 additions and 0 deletions

View File

@ -985,6 +985,8 @@ kern_ptrace(struct thread *td, int req, pid_t pid, void *addr, int data)
} else { } else {
pl->pl_flags = 0; pl->pl_flags = 0;
} }
pl->pl_sigmask = td2->td_sigmask;
pl->pl_siglist = td2->td_siglist;
_PRELE(p); _PRELE(p);
PROC_UNLOCK(p); PROC_UNLOCK(p);
return (0); return (0);

View File

@ -33,6 +33,8 @@
#ifndef _SYS_PTRACE_H_ #ifndef _SYS_PTRACE_H_
#define _SYS_PTRACE_H_ #define _SYS_PTRACE_H_
#include <sys/_sigset.h>
#define PT_TRACE_ME 0 /* child declares it's being traced */ #define PT_TRACE_ME 0 /* child declares it's being traced */
#define PT_READ_I 1 /* read word in child's I space */ #define PT_READ_I 1 /* read word in child's I space */
#define PT_READ_D 2 /* read word in child's D space */ #define PT_READ_D 2 /* read word in child's D space */
@ -92,6 +94,8 @@ struct ptrace_lwpinfo {
int pl_flags; /* LWP flags. */ int pl_flags; /* LWP flags. */
#define PL_FLAG_SA 0x01 /* M:N thread */ #define PL_FLAG_SA 0x01 /* M:N thread */
#define PL_FLAG_BOUND 0x02 /* M:N bound thread */ #define PL_FLAG_BOUND 0x02 /* M:N bound thread */
sigset_t pl_sigmask; /* LWP signal mask */
sigset_t pl_siglist; /* LWP pending signal */
}; };
#ifdef _KERNEL #ifdef _KERNEL