]> granicus.if.org Git - strace/commit
Cleanup parser of ptrace syscall
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 1 Apr 2016 00:28:33 +0000 (00:28 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 1 Apr 2016 00:28:33 +0000 (00:28 +0000)
commitccdc82a57d276ee9d4313c3c81662115ee40207c
tree39a8139f06484ca1c72eaf3b657eb803dc699360
parent1f3482bedad505a41caf1d61b3a4e7e09a2f4330
Cleanup parser of ptrace syscall

* process.c (print_user_offset_addr): New function for printing offset
address in the tracee's USER area.
(SYS_FUNC(ptrace)): Assign syscall arguments to local variables with
appropriate types.  Print pid argument as int.  Use switch statement
in the code that handles address argument.  Use print_user_offset_addr
to print address in PTRACE_PEEKUSER and PTRACE_POKEUSER requests.
process.c