aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-mips.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-06-18 18:37:12 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-06-18 18:37:12 +0000
commit064f515651b1e730c60652eaf07f94c22841d475 (patch)
tree8bc150e74d8805926a19cc5383500afde611b887 /gdb/remote-mips.c
parent82d1552e979875fc6e25a31800322b46c1dfe02e (diff)
downloadgdb-064f515651b1e730c60652eaf07f94c22841d475.zip
gdb-064f515651b1e730c60652eaf07f94c22841d475.tar.gz
gdb-064f515651b1e730c60652eaf07f94c22841d475.tar.bz2
2007-06-18 Markus Deuling <deuling@de.ibm.com>
* gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by gdbarch_deprecated_fp_regnum. * std-regs.c (value_of_builtin_frame_fp_reg): Likewise. * remote-mips.c (mips_wait, mips_fetch_registers): Likewise. * arch-utils.c (legacy_virtual_frame_pointer): Likewise. * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise (comment). * gdbarch.c, gdbarch.h: Regenerate.
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r--gdb/remote-mips.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c
index d63bbcb..4773704 100644
--- a/gdb/remote-mips.c
+++ b/gdb/remote-mips.c
@@ -1773,8 +1773,13 @@ mips_wait (ptid_t ptid, struct target_waitstatus *status)
gdbarch_sp_regnum (current_gdbarch)), rsp);
regcache_raw_supply (regcache, gdbarch_sp_regnum (current_gdbarch), buf);
- store_unsigned_integer (buf, register_size (current_gdbarch, DEPRECATED_FP_REGNUM), 0);
- regcache_raw_supply (regcache, DEPRECATED_FP_REGNUM, buf);
+ store_unsigned_integer (buf,
+ register_size (current_gdbarch,
+ gdbarch_deprecated_fp_regnum
+ (current_gdbarch)),
+ 0);
+ regcache_raw_supply (regcache,
+ gdbarch_deprecated_fp_regnum (current_gdbarch), buf);
if (nfields == 9)
{
@@ -1911,8 +1916,9 @@ mips_fetch_registers (struct regcache *regcache, int regno)
return;
}
- if (regno == DEPRECATED_FP_REGNUM || regno == MIPS_ZERO_REGNUM)
- /* DEPRECATED_FP_REGNUM on the mips is a hack which is just
+ if (regno == gdbarch_deprecated_fp_regnum (current_gdbarch)
+ || regno == MIPS_ZERO_REGNUM)
+ /* gdbarch_deprecated_fp_regnum on the mips is a hack which is just
supposed to read zero (see also mips-nat.c). */
val = 0;
else