From: Mark Kettenis Date: Sun, 18 Aug 2002 17:37:17 +0000 (+0000) Subject: * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c38d82615e95251b97cb79537c77bbabda2f54cc;p=binutils-gdb.git * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7d6f6dcaecb..dce4de09876 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2002-08-18 Mark Kettenis + * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code. + * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef. * i386b-nat.c [FLOAT_INFO]: Remove dead code. diff --git a/gdb/i386b-nat.c b/gdb/i386b-nat.c index 921bc417f0d..3c8a17c2719 100644 --- a/gdb/i386b-nat.c +++ b/gdb/i386b-nat.c @@ -21,57 +21,6 @@ #include "defs.h" -#ifdef FETCH_INFERIOR_REGISTERS -#include -#include -#include -#include -#include "inferior.h" -#include "gdbcore.h" /* for registers_fetched() */ -#include "regcache.h" - -void -fetch_inferior_registers (int regno) -{ - struct reg inferior_registers; - - ptrace (PT_GETREGS, PIDGET (inferior_ptid), - (PTRACE_ARG3_TYPE) & inferior_registers, 0); - memcpy (®isters[REGISTER_BYTE (0)], &inferior_registers, 4 * NUM_REGS); - registers_fetched (); -} - -void -store_inferior_registers (int regno) -{ - struct reg inferior_registers; - - memcpy (&inferior_registers, ®isters[REGISTER_BYTE (0)], 4 * NUM_REGS); - ptrace (PT_SETREGS, PIDGET (inferior_ptid), - (PTRACE_ARG3_TYPE) & inferior_registers, 0); -} - -struct md_core -{ - struct reg intreg; - struct fpreg freg; -}; - -void -fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, int which, - CORE_ADDR ignore) -{ - 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 - #include /* this table must line up with REGISTER_NAMES in tm-i386.h */ @@ -121,5 +70,3 @@ i386_register_u_addr (int blockend, int regnum) else return (blockend + 4 * sregmap[regnum]); } - -#endif /* !FETCH_INFERIOR_REGISTERS */