Add support for NetBSD threads in alpha-bsd-nat.c
authorKamil Rytarowski <n54@gmx.com>
Sat, 14 Mar 2020 15:36:16 +0000 (16:36 +0100)
committerKamil Rytarowski <n54@gmx.com>
Sat, 14 Mar 2020 15:36:16 +0000 (16:36 +0100)
commit6def66f1404e58b376655f6fb622aeb9dfc0f587
treeee219da32e9c9316de73325e1b89c4bcd4684d17
parent66eaca97ebd0f1b456ffe158fce73bafcce561bb
Add support for NetBSD threads in alpha-bsd-nat.c

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

gdb/ChangeLog:

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