#ifndef get_regs
long get_regs_error;
-#if defined(PTRACE_GETREGSET) && defined(NT_PRSTATUS)
static void get_regset(pid_t pid)
{
/* constant iovec */
# warning both PTRACE_GETREGSET and NT_PRSTATUS are available but not yet used
# endif
}
-#endif /* PTRACE_GETREGSET && NT_PRSTATUS */
void
get_regs(pid_t pid)
/* try PTRACE_GETREGSET first, fallback to PTRACE_GETREGS */
# else
-# if defined(PTRACE_GETREGSET) && defined(NT_PRSTATUS)
static int getregset_support;
if (getregset_support >= 0) {
return;
getregset_support = -1;
}
-# endif /* PTRACE_GETREGSET && NT_PRSTATUS */
# if defined(ARM)
get_regs_error = ptrace(PTRACE_GETREGS, pid, NULL, &arm_regs);
# elif defined(I386)