static void vaxbsd_store_inferior_registers (struct target_ops *ops, struct regcache *regcache, int regnum) { gregset_t gregs; fill_gregset (regcache, &gregs, regnum); vaxbsd_collect_gregset (regcache, &gregs, regnum); supply_gregset (regcache, &gregs); }
static void vaxbsd_store_inferior_registers (struct regcache *regcache, int regnum) { struct reg regs; if (ptrace (PT_GETREGS, PIDGET (inferior_ptid), (PTRACE_TYPE_ARG3) ®s, 0) == -1) perror_with_name (_("Couldn't get registers")); vaxbsd_collect_gregset (regcache, ®s, regnum); if (ptrace (PT_SETREGS, PIDGET (inferior_ptid), (PTRACE_TYPE_ARG3) ®s, 0) == -1) perror_with_name (_("Couldn't write registers")); }