Dmitry V. Levin
fa6c0879c7
* sigreturn.c (arch_sigreturn): New function. (sys_sigreturn): Use it. Return RVAL_DECODED. * linux/alpha/arch_sigreturn.c: Update. * linux/crisv10/arch_sigreturn.c: Likewise. * linux/m68k/arch_sigreturn.c: Likewise. * linux/microblaze/arch_sigreturn.c: Likewise. * linux/x86_64/arch_sigreturn.c: Likewise.
12 lines
288 B
C
12 lines
288 B
C
long regs[PT_MAX + 1];
|
|
|
|
if (ptrace(PTRACE_GETREGS, tcp->pid, NULL, (long)regs) < 0) {
|
|
perror_msg("sigreturn: PTRACE_GETREGS");
|
|
return;
|
|
}
|
|
const long addr = regs[PT_USP] + offsetof(struct sigcontext, oldmask);
|
|
|
|
tprints("{mask=");
|
|
print_sigset_addr_len(tcp, addr, NSIG / 8);
|
|
tprints("}");
|