Add support for NetBSD threads in m68k-bsd-nat.c
authorKamil Rytarowski <n54@gmx.com>
Sat, 14 Mar 2020 16:13:38 +0000 (17:13 +0100)
committerKamil Rytarowski <n54@gmx.com>
Sat, 14 Mar 2020 16:13:38 +0000 (17:13 +0100)
commit154151a6e303fa4b17e3597e3434a1c5999df8e1
tree80a46ec032669ecfabe28d84a9fda4cafc44731d
parentbc10778499a971ab9ccecb074cc406d49e1ee608
Add support for NetBSD threads in m68k-bsd-nat.c

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

gdb/ChangeLog:

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