diff options
author | Kamil Rytarowski <n54@gmx.com> | 2020-03-14 17:41:11 +0100 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2020-03-18 02:40:50 +0100 |
commit | fb516a69133999df3e30fccb7c4f5759eb1090eb (patch) | |
tree | 5d2371ef4e081222b399637b4fa48fd76df03880 /gdb/ada-lang.c | |
parent | 1c0aa1fbb2fb1920c12400940704ee90491b7290 (diff) | |
download | gdb-fb516a69133999df3e30fccb7c4f5759eb1090eb.zip gdb-fb516a69133999df3e30fccb7c4f5759eb1090eb.tar.gz gdb-fb516a69133999df3e30fccb7c4f5759eb1090eb.tar.bz2 |
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.
Diffstat (limited to 'gdb/ada-lang.c')
0 files changed, 0 insertions, 0 deletions