diff options
author | Kamil Rytarowski <n54@gmx.com> | 2020-04-17 18:39:42 +0200 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2020-04-18 00:19:53 +0200 |
commit | 4ddfec930ca5bd57800ebc71daef66f685a6de4d (patch) | |
tree | 88bc920e27833a742aa686482d0cb80828286140 /gdb/python/py-continueevent.c | |
parent | 2bed205e44ad853f10416e970de2534554f8cf18 (diff) | |
download | binutils-4ddfec930ca5bd57800ebc71daef66f685a6de4d.zip binutils-4ddfec930ca5bd57800ebc71daef66f685a6de4d.tar.gz binutils-4ddfec930ca5bd57800ebc71daef66f685a6de4d.tar.bz2 |
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'.
Diffstat (limited to 'gdb/python/py-continueevent.c')
0 files changed, 0 insertions, 0 deletions