diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-06-18 18:37:12 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-06-18 18:37:12 +0000 |
commit | 064f515651b1e730c60652eaf07f94c22841d475 (patch) | |
tree | 8bc150e74d8805926a19cc5383500afde611b887 /gdb/arch-utils.c | |
parent | 82d1552e979875fc6e25a31800322b46c1dfe02e (diff) | |
download | gdb-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/arch-utils.c')
-rw-r--r-- | gdb/arch-utils.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 73e4520..9937008 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -175,7 +175,7 @@ cannot_register_not (int regnum) } /* Legacy version of target_virtual_frame_pointer(). Assumes that - there is an DEPRECATED_FP_REGNUM and that it is the same, cooked or + there is an gdbarch_deprecated_fp_regnum and that it is the same, cooked or raw. */ void @@ -188,9 +188,10 @@ legacy_virtual_frame_pointer (CORE_ADDR pc, register and an offset can determine this. I think it should instead generate a byte code expression as that would work better with things like Dwarf2's CFI. */ - if (DEPRECATED_FP_REGNUM >= 0 - && DEPRECATED_FP_REGNUM < gdbarch_num_regs (current_gdbarch)) - *frame_regnum = DEPRECATED_FP_REGNUM; + if (gdbarch_deprecated_fp_regnum (current_gdbarch) >= 0 + && gdbarch_deprecated_fp_regnum (current_gdbarch) + < gdbarch_num_regs (current_gdbarch)) + *frame_regnum = gdbarch_deprecated_fp_regnum (current_gdbarch); else if (gdbarch_sp_regnum (current_gdbarch) >= 0 && gdbarch_sp_regnum (current_gdbarch) < gdbarch_num_regs (current_gdbarch)) |