aboutsummaryrefslogtreecommitdiff
path: root/sim/mn10300
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-12-16 22:31:37 +0000
committerJeff Law <law@redhat.com>1996-12-16 22:31:37 +0000
commit093e9a32d3f35c917c457d16e2286cf6e857ef83 (patch)
tree8d79ba4ef133f66191b9c8ab099d21779c2aeca3 /sim/mn10300
parent374cb3020b27b6265384640d01cb1cc89fda8e16 (diff)
downloadgdb-093e9a32d3f35c917c457d16e2286cf6e857ef83.zip
gdb-093e9a32d3f35c917c457d16e2286cf6e857ef83.tar.gz
gdb-093e9a32d3f35c917c457d16e2286cf6e857ef83.tar.bz2
* simops.c: Handle "break" instruction.
Diffstat (limited to 'sim/mn10300')
-rw-r--r--sim/mn10300/ChangeLog2
-rw-r--r--sim/mn10300/simops.c10
2 files changed, 12 insertions, 0 deletions
diff --git a/sim/mn10300/ChangeLog b/sim/mn10300/ChangeLog
index 69a7b4d..db9a6d2 100644
--- a/sim/mn10300/ChangeLog
+++ b/sim/mn10300/ChangeLog
@@ -1,5 +1,7 @@
Mon Dec 16 10:03:52 1996 Jeffrey A Law (law@cygnus.com)
+ * simops.c: Handle "break" instruction.
+
* simops.c: Fix restoring the PC for "ret" and "retf" instructions.
Wed Dec 11 09:53:10 1996 Jeffrey A Law (law@cygnus.com)
diff --git a/sim/mn10300/simops.c b/sim/mn10300/simops.c
index ff0a915..b406c41 100644
--- a/sim/mn10300/simops.c
+++ b/sim/mn10300/simops.c
@@ -3071,3 +3071,13 @@ void OP_F670 (insn, extension)
{
abort ();
}
+
+/* breakpoint */
+void
+OP_FF (insn, extension)
+ unsigned long insn, extension;
+{
+ State.exception = SIGTRAP;
+ PC -= 1;
+}
+