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