Disable get_ptrace_pid for NetBSD
authorKamil Rytarowski <n54@gmx.com>
Tue, 17 Mar 2020 16:57:14 +0000 (17:57 +0100)
committerKamil Rytarowski <n54@gmx.com>
Thu, 19 Mar 2020 21:20:03 +0000 (22:20 +0100)
commitf09db380942d1393e6f60d1ecaa7d4b6edfaaecf
tree15e0087100237625a2314205923be04213c83f9f
parentf3a08f77787cfe1b9edb7b5ab82ce7a2d527c8cf
Disable get_ptrace_pid for NetBSD

Unlike most other Operating Systems, NetBSD tracks both pid and lwp.
The process id on NetBSD is stored always in the pid field of ptid.

gdb/ChangeLog:

* inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
* inf-ptrace.c: Likewise.
* (gdb_ptrace): Add.
* (inf_ptrace_target::resume): Update.
* (inf_ptrace_target::xfer_partial): Likewise.
* (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
* (inf_ptrace_peek_poke): Update.
gdb/ChangeLog
gdb/inf-ptrace.c
gdb/inf-ptrace.h