static void vaxbsd_fetch_inferior_registers (struct target_ops *ops, struct regcache *regcache, int regnum) { gregset_t gregs; fill_gregset (regcache, &gregs, regnum); vaxbsd_supply_gregset (regcache, &gregs); }
static void vaxbsd_fetch_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_supply_gregset (regcache, ®s); }