+Sat Jan 22 12:29:13 1994 Stu Grossman (grossman at cygnus.com)
+
+ * lynx-nat.c (fetch_core_registers): Load the I & L regs for the
+ Sparc from the stack.
+
Sat Jan 22 08:30:42 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
* remote-mips.c (mips_initialize): Clear mips_initializing via
perror_with_name ("Sparc fetch_inferior_registers(ptrace)");
}
}
-#endif
+#endif /* SPARC */
#ifndef SPARC
ecp = registers_addr (inferior_pid);
- for (regno = reglo; regno <= reghi && regmap[regno] != -1; regno++)
+ for (regno = reglo; regno <= reghi; regno++)
{
char buf[MAX_REGISTER_RAW_SIZE];
int ptrace_fun = PTRACE_PEEKTHREAD;
ecp = registers_addr (inferior_pid);
- for (regno = reglo; regno <= reghi && regmap[regno] != -1; regno++)
+ for (regno = reglo; regno <= reghi; regno++)
{
int ptrace_fun = PTRACE_POKEUSER;
for (regno = 0; regno < NUM_REGS; regno++)
supply_register (regno, core_reg_sect + offsetof (st_t, ec)
+ regmap[regno]);
+
+#ifdef SPARC
+/* Fetching this register causes all of the I & L regs to be read from the
+ stack and validated. */
+
+ fetch_inferior_registers (I0_REGNUM);
+#endif
}