Add support for NetBSD threads in hppa-nbsd-nat.c
authorKamil Rytarowski <n54@gmx.com>
Thu, 19 Mar 2020 14:39:56 +0000 (15:39 +0100)
committerKamil Rytarowski <n54@gmx.com>
Fri, 20 Mar 2020 14:16:03 +0000 (15:16 +0100)
commit4a90f062056e842c3f53293482e0039db0da3245
tree693354404a522559d8efe939c5e7bdc93863da50
parent0dd7b8f788b8d5239800d59f97b43186dcf425e2
Add support for NetBSD threads in hppa-nbsd-nat.c

NetBSD ptrace(2) accepts thread id (LWP) as the 4th argument for threads.

gdb/ChangeLog:

* hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
it to the ptrace call.
* (store_registers): Likewise.
gdb/ChangeLog
gdb/hppa-nbsd-nat.c