aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2004-10-11 02:27:14 +0000
committerJoel Brobecker <brobecker@gnat.com>2004-10-11 02:27:14 +0000
commit25652d4f22fc708c03b242cc8fa82e3de5f48980 (patch)
treee7f3130e58da2f1eb33462f26d6805c2da07ab9d /gdb
parent1e05a7bfcf69fd3285f4063c5d23cc2095c056ec (diff)
downloadgdb-25652d4f22fc708c03b242cc8fa82e3de5f48980.zip
gdb-25652d4f22fc708c03b242cc8fa82e3de5f48980.tar.gz
gdb-25652d4f22fc708c03b242cc8fa82e3de5f48980.tar.bz2
* mips-tdep.c (mips16_scan_prologue): Remove redundant code.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/mips-tdep.c30
2 files changed, 4 insertions, 30 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 466cca1..81f25f8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2004-10-10 Joel Brobecker <brobecker@gnat.com>
+ * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
+
+2004-10-10 Joel Brobecker <brobecker@gnat.com>
+
* mips-tdep.c (mips16_scan_prologue): Renames
mips16_heuristic_proc_desc. Update comment.
(mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index ed80844..bb436f5 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -2396,36 +2396,6 @@ mips16_scan_prologue (CORE_ADDR start_pc, CORE_ADDR limit_pc, CORE_ADDR sp,
this_cache->saved_regs[NUM_REGS + mips_regnum (current_gdbarch)->pc]
= this_cache->saved_regs[NUM_REGS + RA_REGNUM];
}
-
- /* The MIPS16 entry instruction saves $s0 and $s1 in the reverse
- order of that normally used by gcc. Therefore, we have to fetch
- the first instruction of the function, and if it's an entry
- instruction that saves $s0 or $s1, correct their saved addresses. */
- /* FIXME: brobecker/2004-10-10: This code was moved here from
- mips_insn16_frame_cache(), but can be merged with the block above
- handling entry_inst. Will be done in a separate pass, to make changes
- more atomic. Actually, this code seems completely redundant! */
- {
- ULONGEST inst = mips16_fetch_instruction (start_pc);
- if ((inst & 0xf81f) == 0xe809 && (inst & 0x700) != 0x700) /* entry */
- {
- int reg;
- int sreg_count = (inst >> 6) & 3;
- CORE_ADDR reg_position = (this_cache->base);
-
- /* Check if the ra register was pushed on the stack. */
- if (inst & 0x20)
- reg_position -= mips_abi_regsize (current_gdbarch);
-
- /* Check if the s0 and s1 registers were pushed on the stack. */
- /* NOTE: cagney/2004-02-08: Huh? This is doing no such check. */
- for (reg = 16; reg < sreg_count + 16; reg++)
- {
- this_cache->saved_regs[NUM_REGS + reg].addr = reg_position;
- reg_position -= mips_abi_regsize (current_gdbarch);
- }
- }
- }
}
/* Mark all the registers as unset in the saved_regs array