mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +08:00
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.
This commit is contained in:
@ -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__
|
||||
|
Reference in New Issue
Block a user