On Mon, Jun 10, 2013 at 09:48:28PM +1000, Anton Blanchard wrote:
[...]
> @@ -1042,6 +1091,8 @@ get_regs(pid_t pid)
>       get_regs_error = ptrace(PTRACE_GETREGS, pid, (char *)&sparc_regs, 0);
>  # 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);

I suggest checking errno, there is no need to try the fallback after genuine
ptrace errors.


-- 
ldv

Attachment: pgpaudcmV10YQ.pgp
Description: PGP signature

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to