aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-11-07 15:31:31 +0000
committerAndrew Cagney <cagney@redhat.com>2002-11-07 15:31:31 +0000
commit2b9e5f3fab26efbc4ba479d698b881afc87acb75 (patch)
tree6217cf137554212c5c680a5adee7dfbad3f0ced0
parentec4530b540c3e8ac595d1c65744ff8e6c8695c96 (diff)
downloadgdb-2b9e5f3fab26efbc4ba479d698b881afc87acb75.zip
gdb-2b9e5f3fab26efbc4ba479d698b881afc87acb75.tar.gz
gdb-2b9e5f3fab26efbc4ba479d698b881afc87acb75.tar.bz2
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.
-rw-r--r--gdb/ChangeLog19
-rw-r--r--gdb/a68v-nat.c2
-rw-r--r--gdb/corelow.c2
-rw-r--r--gdb/irix5-nat.c2
-rw-r--r--gdb/m68knbsd-nat.c2
-rw-r--r--gdb/mips-nat.c2
-rw-r--r--gdb/mipsm3-nat.c2
-rw-r--r--gdb/ns32knbsd-nat.c6
-rw-r--r--gdb/regcache.c4
-rw-r--r--gdb/regcache.h5
-rw-r--r--gdb/remote-vx68.c2
-rw-r--r--gdb/remote-vxmips.c2
-rw-r--r--gdb/remote-vxsparc.c2
-rw-r--r--gdb/sun3-nat.c2
-rw-r--r--gdb/symm-nat.c2
15 files changed, 39 insertions, 17 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index aa5280f..f88041d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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>
Put in place the framework necessary for multiarching the hppa targets.
diff --git a/gdb/a68v-nat.c b/gdb/a68v-nat.c
index 4cc25ce..b5d5c28 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 785b8e1..f7e3cf0 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 d5b5c0c..0d7e9b6 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 ec986ee..d09b79e 100644
--- a/gdb/m68knbsd-nat.c
+++ b/gdb/m68knbsd-nat.c
@@ -44,7 +44,7 @@ fetch_inferior_registers (int regno)
memcpy (&registers[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 545c741..16009c2 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 62d6860..97a74dd 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 fd6e619..d8bd216 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 14162f2..0f39552 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 e2c17fd..400ba85 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 6feaf5b..c6f1e68 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 e0f7fc3..4ffde16 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 ac52542..31cbd49 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 988ed37..e7a91ad 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 d686777..62ed7f2 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 *) &registers[REGISTER_BYTE (EAX_REGNUM)] = regs.pr_eax;