2020-03-14 Kamil Rytarowski <n54@gmx.com>
- * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const gdb_byte *.
+ * 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.
+
+2020-03-14 Kamil Rytarowski <n54@gmx.com>
+
+ * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
+ gdb_byte *.
* vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
2020-03-14 Kamil Rytarowski <n54@gmx.com>
{
struct reg regs;
pid_t pid = regcache->ptid ().pid ();
+ int lwp = regcache->ptid ().lwp ();
- if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1)
+ if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, lwp) == -1)
perror_with_name (_("Couldn't get registers"));
vaxbsd_supply_gregset (regcache, ®s);
{
struct reg regs;
pid_t pid = regcache->ptid ().pid ();
+ int lwp = regcache->ptid ().lwp ();
- if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1)
+ if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, lwp) == -1)
perror_with_name (_("Couldn't get registers"));
vaxbsd_collect_gregset (regcache, ®s, regnum);
- if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1)
+ if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) ®s, lwp) == -1)
perror_with_name (_("Couldn't write registers"));
}
\f