* i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
This commit is contained in:
parent
222db64cbf
commit
c38d82615e
2 changed files with 2 additions and 53 deletions
|
@ -1,5 +1,7 @@
|
||||||
2002-08-18 Mark Kettenis <kettenis@gnu.org>
|
2002-08-18 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
|
* i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
|
||||||
|
|
||||||
* config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
|
* config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
|
||||||
* i386b-nat.c [FLOAT_INFO]: Remove dead code.
|
* i386b-nat.c [FLOAT_INFO]: Remove dead code.
|
||||||
|
|
||||||
|
|
|
@ -21,57 +21,6 @@
|
||||||
|
|
||||||
#include "defs.h"
|
#include "defs.h"
|
||||||
|
|
||||||
#ifdef FETCH_INFERIOR_REGISTERS
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/ptrace.h>
|
|
||||||
#include <machine/reg.h>
|
|
||||||
#include <machine/frame.h>
|
|
||||||
#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 <machine/reg.h>
|
#include <machine/reg.h>
|
||||||
|
|
||||||
/* this table must line up with REGISTER_NAMES in tm-i386.h */
|
/* 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
|
else
|
||||||
return (blockend + 4 * sregmap[regnum]);
|
return (blockend + 4 * sregmap[regnum]);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* !FETCH_INFERIOR_REGISTERS */
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue