]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog
Fix gdb.base/attach-twice.c build on NetBSD
authorKamil Rytarowski <n54@gmx.com>
Fri, 17 Apr 2020 16:39:42 +0000 (18:39 +0200)
committerKamil Rytarowski <n54@gmx.com>
Fri, 17 Apr 2020 22:19:53 +0000 (00:19 +0200)
commit4ddfec930ca5bd57800ebc71daef66f685a6de4d
tree88bc920e27833a742aa686482d0cb80828286140
parent2bed205e44ad853f10416e970de2534554f8cf18
Fix gdb.base/attach-twice.c build on NetBSD

Add a fallback definition of PTRACE_ATTACH that is an alias of
PT_ATTACH. Change the 4th argument of ptrace(2) to 0 as it is
compatible with void * (Linux) and int (NetBSD) arguments.

Include <sys/types.h> for <sys/ptrace.h>.

gdb/testsuite/ChangeLog:

* gdb.base/attach-twice.c: Include "sys/types.h".
(PTRACE_ATTACH): Add fallback definition.
(main): Pass `0' to the 4th argument of `ptrace'.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/attach-twice.c