runtime: use correct types in __go_ptrace shim

Make the types of the addr and data arguments in the __go_ptrace shim
match the types declared in Go and the types declared by the C ptrace
function, i.e., void*. This avoids a warning about an implicit
int-to-pointer cast on some platforms.

Change-Id: Icf251b9a756e2dcff2a336ca97e109e7fbeaada7
Trust: Than McIntosh <>
Reviewed-by: Ian Lance Taylor <>
1 file changed