diff options
author | Kamil Rytarowski <n54@gmx.com> | 2020-03-20 15:37:18 +0100 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2020-03-20 15:51:16 +0100 |
commit | 1ff700c202465275d1ca3aee4dd979db36274294 (patch) | |
tree | 89406345f0a8f406f572aeefeadd95f4f7054fa6 /gdb/x86-bsd-nat.c | |
parent | f7d4f0b1b9519fa10eb04cb195bdf7b5044d73c7 (diff) | |
download | binutils-gdb-1ff700c202465275d1ca3aee4dd979db36274294.tar.gz |
Update the return type of gdb_ptrace to be more flexible
Linux returns long from ptrace(2) and BSDs int.
gdb/ChangeLog:
* amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
`PTRACE_TYPE_RET'.
* i386-bsd-nat.c (gdb_ptrace): Likewise.
* sparc-nat.c (gdb_ptrace): Likewise.
* x86-bsd-nat.c (gdb_ptrace): Likewise.
Diffstat (limited to 'gdb/x86-bsd-nat.c')
-rw-r--r-- | gdb/x86-bsd-nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/x86-bsd-nat.c b/gdb/x86-bsd-nat.c index 9e2bea1e020..e2ebf5f2e50 100644 --- a/gdb/x86-bsd-nat.c +++ b/gdb/x86-bsd-nat.c @@ -33,7 +33,7 @@ #include "inf-ptrace.h" -static int +static PTRACE_TYPE_RET gdb_ptrace (PTRACE_TYPE_ARG1 request, ptid_t ptid, PTRACE_TYPE_ARG3 addr) { #ifdef __NetBSD__ |