]> granicus.if.org Git - strace/commit
syscall.c: factor out ptrace_getregs from get_regs
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 12 Nov 2016 10:44:18 +0000 (10:44 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 12 Nov 2016 21:29:58 +0000 (21:29 +0000)
commitc93f39ca5b859f02c90c6a9940831d8a3a989afb
tree35522cad774ce1aa6b3ebfb22daa81074b41b440
parent1d886734c7827ee6198d632b8f6f145663ad06b1
syscall.c: factor out ptrace_getregs from get_regs

Move the code that calls ptrace(PTRACE_GETREGS) to a separate function.

* syscall.c (ptrace_getregs): New function.
(get_regs): Use it.
syscall.c