* i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide

implementation for NetBSD systems.
This commit is contained in:
J.T. Conklin 1996-03-05 20:09:21 +00:00
parent c5bde1ef85
commit d554e554da
3 changed files with 30 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -47,6 +47,11 @@ store_inferior_registers(regno)
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;
@ -54,7 +59,13 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, ignore)
int which;
unsigned int ignore;
{
abort();
struct md_core *core_reg = (struct md_core *)core_reg_sect;
/* integer registers */
memcpy(&registers[REGISTER_BYTE (0)], &core_reg->intreg,
sizeof(struct reg));
/* floating point registers */
/* XXX */
}
#else

View File

@ -63,6 +63,11 @@ store_inferior_registers(regno)
(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;
@ -70,5 +75,12 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, ignore)
int which;
unsigned int ignore;
{
abort();
struct md_core *core_reg = (struct md_core *)core_reg_sect;
/* Integer registers */
memcpy(&registers[REGISTER_BYTE (0)],
&core_reg->intreg, sizeof(struct reg));
/* Floating point registers */
memcpy(&registers[REGISTER_BYTE (FP0_REGNUM)],
&core_reg->freg, sizeof(struct fpreg));
}