2002-11-07 Andrew Cagney <ac131313@redhat.com>

* regcache.c (deprecated_registers_fetched): Update.
	* regcache.h (deprecated_registers_fetched): Rename
	registers_fetched.
	* remote-vxsparc.c (vx_read_register): Update.
	* remote-vxmips.c (vx_read_register): Update.
	* remote-vx68.c (vx_read_register): Update.
	* irix5-nat.c (fetch_core_registers): Update.
	* mipsm3-nat.c (fetch_inferior_registers): Update.
	* sun3-nat.c (fetch_inferior_registers): Update.
	* symm-nat.c (fetch_inferior_registers): Update.
	* ns32knbsd-nat.c (fetch_inferior_registers): Update.
	(fetch_core_registers): Update.
	(fetch_kcore_registers): Update.
	* mips-nat.c (fetch_inferior_registers): Update.
	* corelow.c (get_core_registers): Update.
	* a68v-nat.c (fetch_inferior_registers): Update.
This commit is contained in:
Andrew Cagney 2002-11-07 15:31:31 +00:00
parent ec4530b540
commit 2b9e5f3fab
15 changed files with 39 additions and 17 deletions

View file

@ -1,3 +1,22 @@
2002-11-07 Andrew Cagney <ac131313@redhat.com>
* regcache.c (deprecated_registers_fetched): Update.
* regcache.h (deprecated_registers_fetched): Rename
registers_fetched.
* remote-vxsparc.c (vx_read_register): Update.
* remote-vxmips.c (vx_read_register): Update.
* remote-vx68.c (vx_read_register): Update.
* irix5-nat.c (fetch_core_registers): Update.
* mipsm3-nat.c (fetch_inferior_registers): Update.
* sun3-nat.c (fetch_inferior_registers): Update.
* symm-nat.c (fetch_inferior_registers): Update.
* ns32knbsd-nat.c (fetch_inferior_registers): Update.
(fetch_core_registers): Update.
(fetch_kcore_registers): Update.
* mips-nat.c (fetch_inferior_registers): Update.
* corelow.c (get_core_registers): Update.
* a68v-nat.c (fetch_inferior_registers): Update.
2002-11-06 Joel Brobecker <brobecker@gnat.com> 2002-11-06 Joel Brobecker <brobecker@gnat.com>
Put in place the framework necessary for multiarching the hppa targets. Put in place the framework necessary for multiarching the hppa targets.

View file

@ -41,7 +41,7 @@ fetch_inferior_registers (int ignored)
ptrace_$init_control (&inferior_control_registers); ptrace_$init_control (&inferior_control_registers);
inferior_fp_registers.size = sizeof (inferior_fp_registers); inferior_fp_registers.size = sizeof (inferior_fp_registers);
registers_fetched (); deprecated_registers_fetched ();
ptrace (PTRACE_GETREGS, PIDGET (inferior_ptid), ptrace (PTRACE_GETREGS, PIDGET (inferior_ptid),
(PTRACE_ARG3_TYPE) & inferior_registers, (PTRACE_ARG3_TYPE) & inferior_registers,

View file

@ -466,7 +466,7 @@ get_core_registers (int regno)
get_core_register_section (".reg2", 2, "floating-point", 0); get_core_register_section (".reg2", 2, "floating-point", 0);
get_core_register_section (".reg-xfp", 3, "extended floating-point", 0); get_core_register_section (".reg-xfp", 3, "extended floating-point", 0);
registers_fetched (); deprecated_registers_fetched ();
} }
static void static void

View file

@ -250,7 +250,7 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size,
return; return;
} }
registers_fetched (); deprecated_registers_fetched ();
} }
/* Register that we are able to handle irix5 core file formats. /* Register that we are able to handle irix5 core file formats.

View file

@ -44,7 +44,7 @@ fetch_inferior_registers (int regno)
memcpy (&registers[REGISTER_BYTE (FP0_REGNUM)], &inferior_fp_registers, memcpy (&registers[REGISTER_BYTE (FP0_REGNUM)], &inferior_fp_registers,
sizeof (inferior_fp_registers)); sizeof (inferior_fp_registers));
registers_fetched (); deprecated_registers_fetched ();
} }
void void

View file

@ -76,7 +76,7 @@ fetch_inferior_registers (int regno)
char buf[MAX_REGISTER_RAW_SIZE]; char buf[MAX_REGISTER_RAW_SIZE];
register int i; register int i;
registers_fetched (); deprecated_registers_fetched ();
for (regno = 1; regno < NUM_REGS; regno++) for (regno = 1; regno < NUM_REGS; regno++)
{ {

View file

@ -282,7 +282,7 @@ fetch_inferior_registers (int regno)
} }
/* All registers are valid, if not returned yet */ /* All registers are valid, if not returned yet */
registers_fetched (); deprecated_registers_fetched ();
} }
/* Store gdb's view of registers to the thread. /* Store gdb's view of registers to the thread.

View file

@ -71,7 +71,7 @@ fetch_inferior_registers (int regno)
RF (LP0_REGNUM + 3, inferior_fpregisters.r_freg[3]); RF (LP0_REGNUM + 3, inferior_fpregisters.r_freg[3]);
RF (LP0_REGNUM + 5, inferior_fpregisters.r_freg[5]); RF (LP0_REGNUM + 5, inferior_fpregisters.r_freg[5]);
RF (LP0_REGNUM + 7, inferior_fpregisters.r_freg[7]); RF (LP0_REGNUM + 7, inferior_fpregisters.r_freg[7]);
registers_fetched (); deprecated_registers_fetched ();
} }
void void
@ -164,7 +164,7 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, int which,
RF (LP0_REGNUM + 3, core_reg->freg.r_freg[3]); RF (LP0_REGNUM + 3, core_reg->freg.r_freg[3]);
RF (LP0_REGNUM + 5, core_reg->freg.r_freg[5]); RF (LP0_REGNUM + 5, core_reg->freg.r_freg[5]);
RF (LP0_REGNUM + 7, core_reg->freg.r_freg[7]); RF (LP0_REGNUM + 7, core_reg->freg.r_freg[7]);
registers_fetched (); deprecated_registers_fetched ();
} }
/* Register that we are able to handle ns32knbsd core file formats. /* Register that we are able to handle ns32knbsd core file formats.
@ -237,7 +237,7 @@ fetch_kcore_registers (struct pcb *pcb)
RF (LP0_REGNUM + 3, pcb->pcb_freg[3]); RF (LP0_REGNUM + 3, pcb->pcb_freg[3]);
RF (LP0_REGNUM + 5, pcb->pcb_freg[5]); RF (LP0_REGNUM + 5, pcb->pcb_freg[5]);
RF (LP0_REGNUM + 7, pcb->pcb_freg[7]); RF (LP0_REGNUM + 7, pcb->pcb_freg[7]);
registers_fetched (); deprecated_registers_fetched ();
} }
#endif /* FETCH_KCORE_REGISTERS */ #endif /* FETCH_KCORE_REGISTERS */

View file

@ -532,7 +532,7 @@ registers_changed (void)
registers_changed_hook (); registers_changed_hook ();
} }
/* REGISTERS_FETCHED () /* DEPRECATED_REGISTERS_FETCHED ()
Indicate that all registers have been fetched, so mark them all valid. */ Indicate that all registers have been fetched, so mark them all valid. */
@ -545,7 +545,7 @@ registers_changed (void)
this function/hack is eliminated. */ this function/hack is eliminated. */
void void
registers_fetched (void) deprecated_registers_fetched (void)
{ {
int i; int i;

View file

@ -193,6 +193,10 @@ extern void deprecated_write_register_gen (int regnum, char *myaddr);
available. */ available. */
extern signed char *deprecated_register_valid; extern signed char *deprecated_register_valid;
/* NOTE: cagney/2002-11-05: This function, and its co-conspirator
deprecated_registers[], have been superseeded by supply_register(). */
extern void deprecated_registers_fetched (void);
extern int register_cached (int regnum); extern int register_cached (int regnum);
extern void set_register_cached (int regnum, int state); extern void set_register_cached (int regnum, int state);
@ -201,7 +205,6 @@ extern void register_changed (int regnum);
extern void registers_changed (void); extern void registers_changed (void);
extern void registers_fetched (void);
extern void read_register_bytes (int regbyte, char *myaddr, int len); extern void read_register_bytes (int regbyte, char *myaddr, int len);

View file

@ -116,7 +116,7 @@ vx_read_register (int regno)
/* Mark the register cache valid. */ /* Mark the register cache valid. */
registers_fetched (); deprecated_registers_fetched ();
} }
/* Store a register or registers into the VxWorks target. /* Store a register or registers into the VxWorks target.

View file

@ -148,7 +148,7 @@ vx_read_register (int regno)
/* Mark the register cache valid. */ /* Mark the register cache valid. */
registers_fetched (); deprecated_registers_fetched ();
} }
/* Store a register or registers into the VxWorks target. /* Store a register or registers into the VxWorks target.

View file

@ -128,7 +128,7 @@ vx_read_register (int regno)
/* Mark the register cache valid. */ /* Mark the register cache valid. */
registers_fetched (); deprecated_registers_fetched ();
} }
/* Store a register or registers into the VxWorks target. /* Store a register or registers into the VxWorks target.

View file

@ -36,7 +36,7 @@ fetch_inferior_registers (int regno)
struct regs inferior_registers; struct regs inferior_registers;
struct fp_status inferior_fp_registers; struct fp_status inferior_fp_registers;
registers_fetched (); deprecated_registers_fetched ();
ptrace (PTRACE_GETREGS, PIDGET (inferior_ptid), ptrace (PTRACE_GETREGS, PIDGET (inferior_ptid),
(PTRACE_ARG3_TYPE) & inferior_registers); (PTRACE_ARG3_TYPE) & inferior_registers);

View file

@ -100,7 +100,7 @@ fetch_inferior_registers (int regno)
int i; int i;
struct pt_regset regs; struct pt_regset regs;
registers_fetched (); deprecated_registers_fetched ();
mptrace (XPT_RREGS, PIDGET (inferior_ptid), (PTRACE_ARG3_TYPE) & regs, 0); mptrace (XPT_RREGS, PIDGET (inferior_ptid), (PTRACE_ARG3_TYPE) & regs, 0);
*(int *) &registers[REGISTER_BYTE (EAX_REGNUM)] = regs.pr_eax; *(int *) &registers[REGISTER_BYTE (EAX_REGNUM)] = regs.pr_eax;