diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-11-22 22:32:28 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-11-22 22:32:28 +0000 |
commit | 10a08821d34f7753264017ec0f0ba518e22c1946 (patch) | |
tree | e442cef3b278c8b18f4b8720c0a2a1cb19cae8ea /gdb/mips-tdep.c | |
parent | 00d33403730071f7f733a4b3a27defc250aef3a2 (diff) | |
download | gdb-10a08821d34f7753264017ec0f0ba518e22c1946.zip gdb-10a08821d34f7753264017ec0f0ba518e22c1946.tar.gz gdb-10a08821d34f7753264017ec0f0ba518e22c1946.tar.bz2 |
2003-11-22 Andrew Cagney <cagney@redhat.com>
* mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
(mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
mips_regsize.
(mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
* config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
* config/mips/tm-irix5.h: Update copyright.
(SIGFRAME_REG_SIZE): Delete macro.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r-- | gdb/mips-tdep.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 3ba9e28..e9c2bd5 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -1515,23 +1515,19 @@ mips_find_saved_regs (struct frame_info *fci) #define SIGFRAME_FPREGSAVE_OFF \ (SIGFRAME_REGSAVE_OFF + MIPS_NUMREGS * mips_regsize (current_gdbarch) + 3 * mips_regsize (current_gdbarch)) #endif -#ifndef SIGFRAME_REG_SIZE - /* FIXME! Is this correct?? */ -#define SIGFRAME_REG_SIZE mips_regsize (current_gdbarch) -#endif if ((get_frame_type (fci) == SIGTRAMP_FRAME)) { for (ireg = 0; ireg < MIPS_NUMREGS; ireg++) { CORE_ADDR reg_position = (get_frame_base (fci) + SIGFRAME_REGSAVE_OFF - + ireg * SIGFRAME_REG_SIZE); + + ireg * mips_regsize (current_gdbarch)); set_reg_offset (saved_regs, ireg, reg_position); } for (ireg = 0; ireg < MIPS_NUMREGS; ireg++) { CORE_ADDR reg_position = (get_frame_base (fci) + SIGFRAME_FPREGSAVE_OFF - + ireg * SIGFRAME_REG_SIZE); + + ireg * mips_regsize (current_gdbarch)); set_reg_offset (saved_regs, mips_regnum (current_gdbarch)->fp0 + ireg, reg_position); } @@ -6336,9 +6332,6 @@ mips_dump_tdep (struct gdbarch *current_gdbarch, struct ui_file *file) "mips_dump_tdep: SIGFRAME_REGSAVE_OFF = %d\n", SIGFRAME_REGSAVE_OFF); fprintf_unfiltered (file, - "mips_dump_tdep: SIGFRAME_REG_SIZE = %d\n", - SIGFRAME_REG_SIZE); - fprintf_unfiltered (file, "mips_dump_tdep: SKIP_TRAMPOLINE_CODE # %s\n", XSTRING (SKIP_TRAMPOLINE_CODE (PC))); fprintf_unfiltered (file, |