예제 #1
0
파일: vaxbsd-nat.c 프로젝트: execunix/vinos
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);
}
예제 #2
0
파일: vaxbsd-nat.c 프로젝트: gygy/asuswrt
static void
vaxbsd_store_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_collect_gregset (regcache, &regs, regnum);

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