Add support for NetBSD threads in i386-bsd-nat.c
authorKamil Rytarowski <n54@gmx.com>
Sat, 14 Mar 2020 16:41:11 +0000 (17:41 +0100)
committerKamil Rytarowski <n54@gmx.com>
Wed, 18 Mar 2020 01:40:50 +0000 (02:40 +0100)
commitfb516a69133999df3e30fccb7c4f5759eb1090eb
tree5d2371ef4e081222b399637b4fa48fd76df03880
parent1c0aa1fbb2fb1920c12400940704ee90491b7290
Add support for NetBSD threads in i386-bsd-nat.c

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

Define gdb_ptrace() a wrapper function for ptrace(2) that properly passes
the pid,lwp pair on NetBSD and the result of get_ptrace_pid() for others.

gdb/ChangeLog:

* i386-bsd-nat.c (gdb_ptrace): New.
* (i386bsd_fetch_inferior_registers,
i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
* (i386bsd_fetch_inferior_registers,
i386bsd_store_inferior_registers) Use gdb_ptrace.
gdb/ChangeLog
gdb/i386-bsd-nat.c
This page took 0.039002 seconds and 4 git commands to generate.