From 2b9e5f3fab26efbc4ba479d698b881afc87acb75 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 7 Nov 2002 15:31:31 +0000 Subject: [PATCH] 2002-11-07 Andrew Cagney * 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. --- gdb/ChangeLog | 19 +++++++++++++++++++ gdb/a68v-nat.c | 2 +- gdb/corelow.c | 2 +- gdb/irix5-nat.c | 2 +- gdb/m68knbsd-nat.c | 2 +- gdb/mips-nat.c | 2 +- gdb/mipsm3-nat.c | 2 +- gdb/ns32knbsd-nat.c | 6 +++--- gdb/regcache.c | 4 ++-- gdb/regcache.h | 5 ++++- gdb/remote-vx68.c | 2 +- gdb/remote-vxmips.c | 2 +- gdb/remote-vxsparc.c | 2 +- gdb/sun3-nat.c | 2 +- gdb/symm-nat.c | 2 +- 15 files changed, 39 insertions(+), 17 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index aa5280f0f45..f88041dc025 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,22 @@ +2002-11-07 Andrew Cagney + + * 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 Put in place the framework necessary for multiarching the hppa targets. diff --git a/gdb/a68v-nat.c b/gdb/a68v-nat.c index 4cc25cedb54..b5d5c281163 100644 --- a/gdb/a68v-nat.c +++ b/gdb/a68v-nat.c @@ -41,7 +41,7 @@ fetch_inferior_registers (int ignored) ptrace_$init_control (&inferior_control_registers); inferior_fp_registers.size = sizeof (inferior_fp_registers); - registers_fetched (); + deprecated_registers_fetched (); ptrace (PTRACE_GETREGS, PIDGET (inferior_ptid), (PTRACE_ARG3_TYPE) & inferior_registers, diff --git a/gdb/corelow.c b/gdb/corelow.c index 785b8e14323..f7e3cf0f425 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c @@ -466,7 +466,7 @@ get_core_registers (int regno) get_core_register_section (".reg2", 2, "floating-point", 0); get_core_register_section (".reg-xfp", 3, "extended floating-point", 0); - registers_fetched (); + deprecated_registers_fetched (); } static void diff --git a/gdb/irix5-nat.c b/gdb/irix5-nat.c index d5b5c0c1c4d..0d7e9b6ec2e 100644 --- a/gdb/irix5-nat.c +++ b/gdb/irix5-nat.c @@ -250,7 +250,7 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, return; } - registers_fetched (); + deprecated_registers_fetched (); } /* Register that we are able to handle irix5 core file formats. diff --git a/gdb/m68knbsd-nat.c b/gdb/m68knbsd-nat.c index ec986eeb364..d09b79e2231 100644 --- a/gdb/m68knbsd-nat.c +++ b/gdb/m68knbsd-nat.c @@ -44,7 +44,7 @@ fetch_inferior_registers (int regno) memcpy (®isters[REGISTER_BYTE (FP0_REGNUM)], &inferior_fp_registers, sizeof (inferior_fp_registers)); - registers_fetched (); + deprecated_registers_fetched (); } void diff --git a/gdb/mips-nat.c b/gdb/mips-nat.c index 545c74171c3..16009c2e545 100644 --- a/gdb/mips-nat.c +++ b/gdb/mips-nat.c @@ -76,7 +76,7 @@ fetch_inferior_registers (int regno) char buf[MAX_REGISTER_RAW_SIZE]; register int i; - registers_fetched (); + deprecated_registers_fetched (); for (regno = 1; regno < NUM_REGS; regno++) { diff --git a/gdb/mipsm3-nat.c b/gdb/mipsm3-nat.c index 62d68600bc7..97a74dd658d 100644 --- a/gdb/mipsm3-nat.c +++ b/gdb/mipsm3-nat.c @@ -282,7 +282,7 @@ fetch_inferior_registers (int regno) } /* All registers are valid, if not returned yet */ - registers_fetched (); + deprecated_registers_fetched (); } /* Store gdb's view of registers to the thread. diff --git a/gdb/ns32knbsd-nat.c b/gdb/ns32knbsd-nat.c index fd6e6197efc..d8bd216fd30 100644 --- a/gdb/ns32knbsd-nat.c +++ b/gdb/ns32knbsd-nat.c @@ -71,7 +71,7 @@ fetch_inferior_registers (int regno) RF (LP0_REGNUM + 3, inferior_fpregisters.r_freg[3]); RF (LP0_REGNUM + 5, inferior_fpregisters.r_freg[5]); RF (LP0_REGNUM + 7, inferior_fpregisters.r_freg[7]); - registers_fetched (); + deprecated_registers_fetched (); } 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 + 5, core_reg->freg.r_freg[5]); 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. @@ -237,7 +237,7 @@ fetch_kcore_registers (struct pcb *pcb) RF (LP0_REGNUM + 3, pcb->pcb_freg[3]); RF (LP0_REGNUM + 5, pcb->pcb_freg[5]); RF (LP0_REGNUM + 7, pcb->pcb_freg[7]); - registers_fetched (); + deprecated_registers_fetched (); } #endif /* FETCH_KCORE_REGISTERS */ diff --git a/gdb/regcache.c b/gdb/regcache.c index 14162f2a2ba..0f39552124e 100644 --- a/gdb/regcache.c +++ b/gdb/regcache.c @@ -532,7 +532,7 @@ registers_changed (void) registers_changed_hook (); } -/* REGISTERS_FETCHED () +/* DEPRECATED_REGISTERS_FETCHED () Indicate that all registers have been fetched, so mark them all valid. */ @@ -545,7 +545,7 @@ registers_changed (void) this function/hack is eliminated. */ void -registers_fetched (void) +deprecated_registers_fetched (void) { int i; diff --git a/gdb/regcache.h b/gdb/regcache.h index e2c17fd8dbc..400ba855e64 100644 --- a/gdb/regcache.h +++ b/gdb/regcache.h @@ -193,6 +193,10 @@ extern void deprecated_write_register_gen (int regnum, char *myaddr); available. */ 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 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_fetched (void); extern void read_register_bytes (int regbyte, char *myaddr, int len); diff --git a/gdb/remote-vx68.c b/gdb/remote-vx68.c index 6feaf5b0f16..c6f1e68797c 100644 --- a/gdb/remote-vx68.c +++ b/gdb/remote-vx68.c @@ -116,7 +116,7 @@ vx_read_register (int regno) /* Mark the register cache valid. */ - registers_fetched (); + deprecated_registers_fetched (); } /* Store a register or registers into the VxWorks target. diff --git a/gdb/remote-vxmips.c b/gdb/remote-vxmips.c index e0f7fc3dfd0..4ffde16346e 100644 --- a/gdb/remote-vxmips.c +++ b/gdb/remote-vxmips.c @@ -148,7 +148,7 @@ vx_read_register (int regno) /* Mark the register cache valid. */ - registers_fetched (); + deprecated_registers_fetched (); } /* Store a register or registers into the VxWorks target. diff --git a/gdb/remote-vxsparc.c b/gdb/remote-vxsparc.c index ac52542b807..31cbd49f163 100644 --- a/gdb/remote-vxsparc.c +++ b/gdb/remote-vxsparc.c @@ -128,7 +128,7 @@ vx_read_register (int regno) /* Mark the register cache valid. */ - registers_fetched (); + deprecated_registers_fetched (); } /* Store a register or registers into the VxWorks target. diff --git a/gdb/sun3-nat.c b/gdb/sun3-nat.c index 988ed37ad06..e7a91adc7ed 100644 --- a/gdb/sun3-nat.c +++ b/gdb/sun3-nat.c @@ -36,7 +36,7 @@ fetch_inferior_registers (int regno) struct regs inferior_registers; struct fp_status inferior_fp_registers; - registers_fetched (); + deprecated_registers_fetched (); ptrace (PTRACE_GETREGS, PIDGET (inferior_ptid), (PTRACE_ARG3_TYPE) & inferior_registers); diff --git a/gdb/symm-nat.c b/gdb/symm-nat.c index d6867774310..62ed7f2f6bf 100644 --- a/gdb/symm-nat.c +++ b/gdb/symm-nat.c @@ -100,7 +100,7 @@ fetch_inferior_registers (int regno) int i; struct pt_regset regs; - registers_fetched (); + deprecated_registers_fetched (); mptrace (XPT_RREGS, PIDGET (inferior_ptid), (PTRACE_ARG3_TYPE) & regs, 0); *(int *) ®isters[REGISTER_BYTE (EAX_REGNUM)] = regs.pr_eax; -- 2.30.2