]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
Add support for NetBSD threads in sparc-nat.c
authorKamil Rytarowski <n54@gmx.com>
Sat, 14 Mar 2020 16:41:11 +0000 (17:41 +0100)
committerKamil Rytarowski <n54@gmx.com>
Tue, 17 Mar 2020 22:16:49 +0000 (23:16 +0100)
commit2108a63a5a736c2329a2a92ca58e0b9993dc5d42
treee5cebff36db00e96bc766cf190c4bacd500f065f
parentd3c3c54293ce8c42503e66f8076059a7c8b1639f
Add support for NetBSD threads in sparc-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:

* sparc-nat.c (gdb_ptrace): New.
* sparc-nat.c (sparc_fetch_inferior_registers)
(sparc_store_inferior_registers) Remove obsolete comment.
* sparc-nat.c (sparc_fetch_inferior_registers)
(sparc_store_inferior_registers) Switch from pid_t to ptid_t.
* sparc-nat.c (sparc_fetch_inferior_registers)
(sparc_store_inferior_registers) Use gdb_ptrace.
gdb/ChangeLog
gdb/sparc-nat.c