1 static void arch_sigreturn(struct tcb * tcp)2arch_sigreturn(struct tcb *tcp) 3 { 4 long regs[PT_MAX + 1]; 5 6 if (ptrace(PTRACE_GETREGS, tcp->pid, NULL, (long)regs) < 0) { 7 perror_msg("sigreturn: PTRACE_GETREGS"); 8 return; 9 } 10 const long addr = regs[PT_USP] + offsetof(struct sigcontext, oldmask); 11 12 tprints("{mask="); 13 print_sigset_addr_len(tcp, addr, NSIG / 8); 14 tprints("}"); 15 } 16