• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 long regs[PT_MAX + 1];
2 
3 if (ptrace(PTRACE_GETREGS, tcp->pid, NULL, (long)regs) < 0) {
4 	perror_msg("sigreturn: PTRACE_GETREGS");
5 	return 0;
6 }
7 const long addr = regs[PT_USP] + offsetof(struct sigcontext, oldmask);
8 
9 tprints("{mask=");
10 print_sigset_addr_len(tcp, addr, NSIG / 8);
11 tprints("}");
12