summaryrefslogtreecommitdiffstats
path: root/c/src/librdbg/include/rdbg/m68k/rdbg_f.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/librdbg/include/rdbg/m68k/rdbg_f.h')
-rw-r--r--c/src/librdbg/include/rdbg/m68k/rdbg_f.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/c/src/librdbg/include/rdbg/m68k/rdbg_f.h b/c/src/librdbg/include/rdbg/m68k/rdbg_f.h
new file mode 100644
index 0000000000..e51d995c2f
--- /dev/null
+++ b/c/src/librdbg/include/rdbg/m68k/rdbg_f.h
@@ -0,0 +1,39 @@
+/*
+ **************************************************************************
+ *
+ * Component = RDBG
+ * Module = rdbg_f.h
+ *
+ * Synopsis = Machine-dependent header file
+ *
+ * $Id$
+ *
+ **************************************************************************
+ */
+
+#ifndef RDBG_F_H
+#define RDBG_F_H
+
+#include <rtems.h>
+#include <rdbg/remdeb.h>
+
+static inline int isRdbgException(Exception_context *ctx)
+{
+ if (
+ ctx->ctx->vecnum != 9 /* trace - singlestep */
+ && ctx->ctx->vecnum != 47 /* trap #15 - breakpoint */
+ && ctx->ctx->vecnum != 36 /* trap #4 - enter RDBG */
+ ) return 0;
+ else return 1;
+}
+static inline int getExcNum(Exception_context *ctx)
+{
+ return ctx->ctx->vecnum;
+}
+
+extern void connect_rdbg_exception();
+
+#endif
+
+
+