From 064f515651b1e730c60652eaf07f94c22841d475 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Mon, 18 Jun 2007 18:37:12 +0000 Subject: 2007-06-18 Markus Deuling * 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. --- gdb/remote-mips.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'gdb/remote-mips.c') 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 -- cgit v1.1