On 06/10/2013 01:48 PM, Anton Blanchard wrote: > > PTRACE_GETREGS was added to the ppc kernel in 2.6.23. In order to > provide backward compatibility for very old kernels, add a manual > fallback.
> # elif defined(POWERPC) > get_regs_error = ptrace(PTRACE_GETREGS, pid, NULL, (long) &ppc_regs); > + if (get_regs_error) > + get_regs_error = powerpc_getregs_old(pid); Just to be sure that we only fall back if PTRACE_GETREGS op is unknown, not in other cases (such as tracee killed under us) lets do this: if (get_regs_error && errno == ????) Which errno is generated in this case? ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Strace-devel mailing list Strace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/strace-devel