From 1ff700c202465275d1ca3aee4dd979db36274294 Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Fri, 20 Mar 2020 15:37:18 +0100 Subject: 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. --- gdb/sparc-nat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/sparc-nat.c') diff --git a/gdb/sparc-nat.c b/gdb/sparc-nat.c index fadcfd3..8d5bf35 100644 --- a/gdb/sparc-nat.c +++ b/gdb/sparc-nat.c @@ -78,7 +78,7 @@ typedef struct fp_status fpregset_t; #define PTRACE_SETFPREGS PT_SETFPREGS #endif -static int +static PTRACE_TYPE_RET gdb_ptrace (PTRACE_TYPE_ARG1 request, ptid_t ptid, PTRACE_TYPE_ARG3 addr) { #ifdef __NetBSD__ -- cgit v1.1