implementation for NetBSD systems.
+Tue Mar 5 12:05:35 1996 J.T. Conklin <jtc@rtl.cygnus.com>
+
+ * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
+ implementation for NetBSD systems.
+
Mon Mar 4 23:44:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
* valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
ptrace (PT_SETREGS, inferior_pid, (PTRACE_ARG3_TYPE) &inferior_registers, 0);
}
+struct md_core {
+ struct reg intreg;
+ struct fpreg freg;
+};
+
void
fetch_core_registers (core_reg_sect, core_reg_size, which, ignore)
char *core_reg_sect;
int which;
unsigned int ignore;
{
- abort();
+ struct md_core *core_reg = (struct md_core *)core_reg_sect;
+
+ /* integer registers */
+ memcpy(®isters[REGISTER_BYTE (0)], &core_reg->intreg,
+ sizeof(struct reg));
+ /* floating point registers */
+ /* XXX */
}
#else
(PTRACE_ARG3_TYPE) &inferior_fp_registers, 0);
}
+struct md_core {
+ struct reg intreg;
+ struct fpreg freg;
+};
+
void
fetch_core_registers (core_reg_sect, core_reg_size, which, ignore)
char *core_reg_sect;
int which;
unsigned int ignore;
{
- abort();
+ struct md_core *core_reg = (struct md_core *)core_reg_sect;
+
+ /* Integer registers */
+ memcpy(®isters[REGISTER_BYTE (0)],
+ &core_reg->intreg, sizeof(struct reg));
+ /* Floating point registers */
+ memcpy(®isters[REGISTER_BYTE (FP0_REGNUM)],
+ &core_reg->freg, sizeof(struct fpreg));
}