aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-11-14 20:37:29 +0000
committerAndrew Cagney <cagney@redhat.com>2002-11-14 20:37:29 +0000
commit524d7c188c0860ee017df038f2d1f443da3c80eb (patch)
tree6174f5d73ffaad7c1159954fa922cfd4bb73bfda /gdb/regcache.c
parent2fa9fc65a53ee02ca5dd15d12ebb903a22207051 (diff)
downloadgdb-524d7c188c0860ee017df038f2d1f443da3c80eb.zip
gdb-524d7c188c0860ee017df038f2d1f443da3c80eb.tar.gz
gdb-524d7c188c0860ee017df038f2d1f443da3c80eb.tar.bz2
2002-11-14 Andrew Cagney <ac131313@redhat.com>
* regcache.h (deprecated_registers): Rename registers. * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update. * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update. * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update. * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update. * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update. * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update. * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update. * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update. * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update. * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update. * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update. * v850ice.c: Update.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index 9afafad..1bbdb61 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -489,7 +489,7 @@ struct regcache *current_regcache;
/* REGISTERS contains the cached register values (in target byte order). */
-char *registers;
+char *deprecated_registers;
/* DEPRECATED_REGISTER_VALID is 0 if the register needs to be fetched,
1 if it has been fetched, and
@@ -657,7 +657,7 @@ deprecated_read_register_bytes (int in_start, char *in_buf, int in_len)
/* FIXME: cagney/2001-08-18: This is just silly. It defeats
the entire register read/write flow of control. Must
resist temptation to return 0xdeadbeef. */
- memcpy (reg_buf, registers + reg_start, reg_len);
+ memcpy (reg_buf, &deprecated_registers[reg_start], reg_len);
/* Legacy note: This function, for some reason, allows a NULL
input buffer. If the buffer is NULL, the registers are still
@@ -1000,7 +1000,7 @@ deprecated_write_register_bytes (int myregstart, char *myaddr, int inlen)
Update it from the target before scribbling on it. */
deprecated_read_register_gen (regnum, regbuf);
- memcpy (registers + overlapstart,
+ memcpy (&deprecated_registers[overlapstart],
myaddr + (overlapstart - myregstart),
overlapend - overlapstart);
@@ -1413,7 +1413,7 @@ build_regcache (void)
{
current_regcache = regcache_xmalloc (current_gdbarch);
current_regcache->readonly_p = 0;
- registers = deprecated_grub_regcache_for_registers (current_regcache);
+ deprecated_registers = deprecated_grub_regcache_for_registers (current_regcache);
deprecated_register_valid = deprecated_grub_regcache_for_register_valid (current_regcache);
}
@@ -1695,7 +1695,7 @@ _initialize_regcache (void)
regcache_descr_handle = register_gdbarch_data (init_regcache_descr,
xfree_regcache_descr);
REGISTER_GDBARCH_SWAP (current_regcache);
- register_gdbarch_swap (&registers, sizeof (registers), NULL);
+ register_gdbarch_swap (&deprecated_registers, sizeof (deprecated_registers), NULL);
register_gdbarch_swap (&deprecated_register_valid, sizeof (deprecated_register_valid), NULL);
register_gdbarch_swap (NULL, 0, build_regcache);