]> granicus.if.org Git - strace/commit
Use PTRACE_SUNDETACH everywhere on SPARC and SPARC64
authorJames Clarke <jrtc27@jrtc27.com>
Mon, 29 Aug 2016 23:50:33 +0000 (00:50 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 30 Aug 2016 00:48:36 +0000 (00:48 +0000)
commitb4a32f9e57b0009a36bf0eaf9cc9be4457020276
tree49467e62bb3bc5646edcf593bf02ff23d8d3c95b
parentfcfdf89b8e01e34fc1c7c0aaa69c6dde903b7aa9
Use PTRACE_SUNDETACH everywhere on SPARC and SPARC64

SPARC has a different PTRACE_DETACH value correctly defined in
sys/ptrace.h, but linux/ptrace.h clobbers it with the standard one.
PTRACE_SUNDETACH is also defined to the correct value by sys/ptrace.h,
so use that instead.

* strace.c (detach) [SPARC]: Move redefinition of PTRACE_DETACH
to PTRACE_SUNDETACH ...
* ptrace.h [SPARC || SPARC64]: ... here.
ptrace.h
strace.c