aboutsummaryrefslogtreecommitdiff
path: root/gdb/mn10300-tdep.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2005-04-02 00:08:14 +0000
committerMichael Snyder <msnyder@vmware.com>2005-04-02 00:08:14 +0000
commit9b3c083c83dca517211431bdb3f23fbb6ce5236a (patch)
tree87b0846c5f6c1b6b009cf1b80265cc98990b3f74 /gdb/mn10300-tdep.c
parentab53d7c7563e707f982dc7e37cee5dd477f57c51 (diff)
downloadgdb-9b3c083c83dca517211431bdb3f23fbb6ce5236a.zip
gdb-9b3c083c83dca517211431bdb3f23fbb6ce5236a.tar.gz
gdb-9b3c083c83dca517211431bdb3f23fbb6ce5236a.tar.bz2
2005-04-01 Michael Snyder <msnyder@redhat.com>
* mn10300-prologue.c (set_movm_offsets): Don't test variable before setting it. * mn10300-tdep.c (mn10300_skip_prologue): Use analyze_prologue instead of skip_prologue_using_sal.
Diffstat (limited to 'gdb/mn10300-tdep.c')
-rw-r--r--gdb/mn10300-tdep.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c
index bfa4092..8fa50d0 100644
--- a/gdb/mn10300-tdep.c
+++ b/gdb/mn10300-tdep.c
@@ -295,9 +295,15 @@ mn10300_breakpoint_from_pc (CORE_ADDR *bp_addr, int *bp_size)
static CORE_ADDR
mn10300_skip_prologue (CORE_ADDR pc)
{
+#if 0
+ CORE_ADDR ret;
/* FIXME: not implemented. */
/* First approximation, try simply using skip_prologue_using_sal. */
- return skip_prologue_using_sal (pc);
+ ret = skip_prologue_using_sal (pc);
+ return ret ? ret : pc;
+#else
+ return mn10300_analyze_prologue (NULL, NULL, pc);
+#endif
}
/* Simple frame_unwind_cache.