aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2020-04-17 18:39:42 +0200
committerKamil Rytarowski <n54@gmx.com>2020-04-18 00:19:53 +0200
commit4ddfec930ca5bd57800ebc71daef66f685a6de4d (patch)
tree88bc920e27833a742aa686482d0cb80828286140 /bfd
parent2bed205e44ad853f10416e970de2534554f8cf18 (diff)
downloadgdb-4ddfec930ca5bd57800ebc71daef66f685a6de4d.zip
gdb-4ddfec930ca5bd57800ebc71daef66f685a6de4d.tar.gz
gdb-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 'bfd')
0 files changed, 0 insertions, 0 deletions