summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>2004-02-20 00:16:16 +0000
committerFred Fish <fnf@specifix.com>2004-02-20 00:16:16 +0000
commit275c67549a04c4e94971c1b38412a82bfd1151e8 (patch)
tree25eec3fdacbb0fec6115045e1ba486455190b38f
parentc0835bc33cab83ad25ec6b458536a09baabe90e7 (diff)
downloadgdb-275c67549a04c4e94971c1b38412a82bfd1151e8.tar.gz
Reviewed and approved by ezannoni@redhat.com
2004-02-19 Fred Fish <fnf@redhat.com> * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of cache->uses_fp prior to setting it.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/sh-tdep.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 114cd44e7ea..8cb3a4dbd9a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2004-02-19 Fred Fish <fnf@redhat.com>
+ * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
+ cache->uses_fp prior to setting it.
+
+2004-02-19 Fred Fish <fnf@redhat.com>
+
Fix for PR breakpoint/1558.
* sh-tdep.c (IS_JSR): New macro.
(sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c
index cca2a15462f..9cb5278c4d4 100644
--- a/gdb/sh-tdep.c
+++ b/gdb/sh-tdep.c
@@ -482,8 +482,7 @@ sh_analyze_prologue (CORE_ADDR pc, CORE_ADDR current_pc,
}
else if (IS_MOV_SP_FP (inst))
{
- if (!cache->uses_fp)
- cache->uses_fp = 1;
+ cache->uses_fp = 1;
/* At this point, only allow argument register moves to other
registers or argument register moves to @(X,fp) which are
moving the register arguments onto the stack area allocated