Add support for NetBSD threads in ppc-nbsd-nat.c
authorKamil Rytarowski <n54@gmx.com>
Thu, 19 Mar 2020 14:01:27 +0000 (15:01 +0100)
committerKamil Rytarowski <n54@gmx.com>
Fri, 20 Mar 2020 12:35:03 +0000 (13:35 +0100)
commitc7da12c72c2eeb4f62e772df5cbb1f50f35a84ee
treee99abf8181ce769b35f242888ee58e2822397ecf
parent5844b4657aa2b9eb52aecc5a6338324032fb6eae
Add support for NetBSD threads in ppc-nbsd-nat.c

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

gdb/ChangeLog:

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