Re: [PATCH] Disable get_ptrace_pid for NetBSD

Tom Tromey
2020-03-18T20:54:29Z

>>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:

Tom> Why not make just the body of this function

Tom> #ifdef __NetBSD__
Tom> return ptid.pid ()
Tom> #else
Tom> ... old code

Tom> That would mean fewer #ifs.

I see that's what you did originally and Simon requested this version.

Personally I think the new patch is uglier than the original, on the
basis that use of "#if" generally makes the code harder to understand.

Tom