Exemplo n.º 1
0
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);
}
Exemplo n.º 2
0
static void
vaxbsd_fetch_inferior_registers (struct regcache *regcache, int regnum)
{
  struct reg regs;

  if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
	      (PTRACE_TYPE_ARG3) &regs, 0) == -1)
    perror_with_name (_("Couldn't get registers"));

  vaxbsd_supply_gregset (regcache, &regs);
}