]> granicus.if.org Git - strace/commit
powerpc: Provide a fallback for old kernels without PTRACE_GETREGS
authorAnton Blanchard <anton@samba.org>
Wed, 26 Jun 2013 04:42:37 +0000 (14:42 +1000)
committerDenys Vlasenko <dvlasenk@redhat.com>
Wed, 26 Jun 2013 13:57:29 +0000 (15:57 +0200)
commit14d51a6423aa47378518a71e8345a3d1944d97e7
tree10013bf9e4ecdf4be63327de7b00ecdc657400e3
parentce6e33be1dbfc16620ea7991a414e879ef84fe22
powerpc: Provide a fallback for old kernels without PTRACE_GETREGS

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.

* syscall.c (powerpc_getreg, powerpc_getregs_old): New functions.
(get_regs): Call powerpc_getregs_old if PTRACE_GETREGS is not supported.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
syscall.c