[PATCH] Update the return type of gdb_ptrace to be more flexible

Simon Marchi simark@simark.ca
Fri Mar 20 14:49:56 GMT 2020


On 2020-03-20 10:47 a.m., Kamil Rytarowski wrote:
> 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.

Thanks, this is ok.

Simon



More information about the Gdb-patches mailing list