Skip to content
Commit 03a9c6b0 authored by Alexander Kartashov's avatar Alexander Kartashov Committed by Pavel Emelyanov
Browse files

parasite-syscall: use the ptrace requests PTRACE_(GET|SET)REGSET to retrieve and set CPU registers



This patch introduces the routines ptrace_get_gpregs() and ptrace_set_gpregs()
that wrap the ptrace interface to get and set CPU registers respectively.
The motivation is to make the CRIU code be compatible with architectures that
don't support the PTRACE_GETREGS and PTRACE_SETREGS ptrace calls ---
the requests PTRACE_GETREGSET and PTRACE_SETREGSET are implemented instead.

Signed-off-by: default avatarAlexander Kartashov <alekskartashov@parallels.com>
Signed-off-by: default avatarPavel Emelyanov <xemul@parallels.com>
parent c2a366d4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment