[PATCH] gdb: remove HAVE_DECL_PTRACE

Simon Marchi simark@simark.ca
Fri Mar 20 16:06:00 GMT 2020


On 2020-03-20 11:54 a.m., Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:
> 
> Simon> I stumbled on this snippet in nat/gdb_ptrace.h:
> Simon>     /* Some systems, in particular DEC OSF/1, Digital Unix, Compaq Tru64
> Simon>        or whatever it's called these days, don't provide a prototype for
> Simon>        ptrace.  Provide one to silence compiler warnings.  */
> 
> Simon>     #ifndef HAVE_DECL_PTRACE
> Simon>     extern PTRACE_TYPE_RET ptrace();
> Simon>     #endif
> 
> Simon> I believe this is unnecessary today and should be removed.  First, the
> Simon> comment only mentions OSes we don't support (and to be honest, I had
> Simon> never even heard of).
> 
> Thanks, this looks good to me.
> 
> Tom
> 

Thanks, I pushed it.

Simon


More information about the Gdb-patches mailing list