Add support for NetBSD threads in arm-nbsd-nat.c
authorKamil Rytarowski <n54@gmx.com>
Sat, 14 Mar 2020 14:44:28 +0000 (15:44 +0100)
committerKamil Rytarowski <n54@gmx.com>
Sat, 14 Mar 2020 14:44:28 +0000 (15:44 +0100)
commit75c56d3d1298de72aa67555f2c723a80b4818e04
treeb0b794b163b77992b715b9c86426b116ef5b107b
parent6018d381a00515933016c539d2fdc18ad0d304b8
Add support for NetBSD threads in arm-nbsd-nat.c

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

gdb/ChangeLog:

* arm-nbsd-nat.c (fetch_register): New variable lwp and pass
it to the ptrace call.
* arm-nbsd-nat.c (fetch_fp_register): Likewise.
* arm-nbsd-nat.c (fetch_fp_regs): Likewise.
* arm-nbsd-nat.c (store_register): Likewise.
* arm-nbsd-nat.c (store_regs): Likewise.
* arm-nbsd-nat.c (store_fp_register): Likewise.
* arm-nbsd-nat.c (store_fp_regs): Likewise.
gdb/ChangeLog
gdb/arm-nbsd-nat.c