Add support for threads in vax_bsd_nat_target
authorKamil Rytarowski <n54@gmx.com>
Sat, 14 Mar 2020 12:38:30 +0000 (13:38 +0100)
committerKamil Rytarowski <n54@gmx.com>
Sat, 14 Mar 2020 12:51:14 +0000 (13:51 +0100)
commit6227b330d563add042066259e5f933c89a85b3b5
tree5a345eff2bf62c1c300c6375ba366318ad60cda3
parent12753073036aad1250b5e9a1bd6991c125150269
Add support for threads in vax_bsd_nat_target

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

gdb/ChangeLog:

* vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
it to the ptrace call.
* vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
gdb/ChangeLog
gdb/vax-bsd-nat.c