From: J.T. Conklin Date: Tue, 5 Mar 1996 20:09:21 +0000 (+0000) Subject: * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d554e554dad73003353f054c37e5a8b36419ceba;p=binutils-gdb.git * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide implementation for NetBSD systems. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9a83bf68a76..98549acca90 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Tue Mar 5 12:05:35 1996 J.T. Conklin + + * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide + implementation for NetBSD systems. + Mon Mar 4 23:44:16 1996 Per Bothner * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT. diff --git a/gdb/i386b-nat.c b/gdb/i386b-nat.c index 5831d26ac28..bb78d7288dd 100644 --- a/gdb/i386b-nat.c +++ b/gdb/i386b-nat.c @@ -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(®isters[REGISTER_BYTE (0)], &core_reg->intreg, + sizeof(struct reg)); + /* floating point registers */ + /* XXX */ } #else diff --git a/gdb/m68knbsd-nat.c b/gdb/m68knbsd-nat.c index 5f25259d26b..7f981472ba6 100644 --- a/gdb/m68knbsd-nat.c +++ b/gdb/m68knbsd-nat.c @@ -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(®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)); }