summaryrefslogtreecommitdiffstats
path: root/c/src/librdbg/include/rdbg/m68k
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-10-19 15:35:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-10-19 15:35:21 +0000
commitc92fb641f0a4ddb230b18871d9bfe886b48ab1b4 (patch)
tree48440b23a455ff7358579576422e1c309c579c00 /c/src/librdbg/include/rdbg/m68k
parent0da0dea2248c0c97a59a91af9aee63998bbdbc40 (diff)
downloadrtems-c92fb641f0a4ddb230b18871d9bfe886b48ab1b4.tar.bz2
2000-10-19 Antti P Miettinen <anmietti@trshp.ntc.nokia.com>
* configure.in: Add m68k support. * include/rdbg/m68k, src/m68k, src/m68k/any: New subdirectory. * src/_servtgt.c: add status text to prinf upon task creation failure. * src/rdbg.c: reconnect rdbg exception handlers upon RPC calls. * src/m68k/Makefile.am, src/m68k/any/Makefile.am, src/m68k/any/remdeb_f.x, src/m68k/any/.cvsignore, src/m68k/any/remdeb.h, src/m68k/any/remdeb_xdr.c, src/m68k/any/remdeb_svc.c, src/m68k/excep_f.c, src/m68k/rdbg_cpu_asm.S, src/m68k/rdbg_f.c, src/m68k/.cvsignore: New files.
Diffstat (limited to 'c/src/librdbg/include/rdbg/m68k')
-rw-r--r--c/src/librdbg/include/rdbg/m68k/.cvsignore2
-rw-r--r--c/src/librdbg/include/rdbg/m68k/Makefile.am30
-rw-r--r--c/src/librdbg/include/rdbg/m68k/rdbg_f.h39
-rw-r--r--c/src/librdbg/include/rdbg/m68k/reg.h13
4 files changed, 84 insertions, 0 deletions
diff --git a/c/src/librdbg/include/rdbg/m68k/.cvsignore b/c/src/librdbg/include/rdbg/m68k/.cvsignore
new file mode 100644
index 0000000000..282522db03
--- /dev/null
+++ b/c/src/librdbg/include/rdbg/m68k/.cvsignore
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in
diff --git a/c/src/librdbg/include/rdbg/m68k/Makefile.am b/c/src/librdbg/include/rdbg/m68k/Makefile.am
new file mode 100644
index 0000000000..2507c47d79
--- /dev/null
+++ b/c/src/librdbg/include/rdbg/m68k/Makefile.am
@@ -0,0 +1,30 @@
+##
+## $Id$
+##
+
+AUTOMAKE_OPTIONS = foreign 1.4
+
+H_FILES = rdbg_f.h reg.h
+
+noinst_HEADERS = $(H_FILES)
+
+##PREINSTALL_FILES = \
+##$(PROJECT_INCLUDE)/rdbg/m68k \
+##$(noinst_HEADERS:%=$(PROJECT_INCLUDE)/rdbg/m68k/%)
+
+##$(PROJECT_INCLUDE)/rdbg/m68k:
+## @$(mkinstalldirs) $@
+##$(PROJECT_INCLUDE)/rdbg/m68k/%.h: %.h
+## $(INSTALL_DATA) $< $@
+
+PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg \
+ $(noinst_HEADERS:%=$(PROJECT_INCLUDE)/rdbg/%)
+
+$(PROJECT_INCLUDE)/rdbg:
+ @$(mkinstalldirs) $@
+$(PROJECT_INCLUDE)/rdbg/%.h: %.h
+ $(INSTALL_DATA) $< $@
+
+all-local: $(PREINSTALL_FILES)
+
+include $(top_srcdir)/../../../automake/local.am
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
+
+
+
diff --git a/c/src/librdbg/include/rdbg/m68k/reg.h b/c/src/librdbg/include/rdbg/m68k/reg.h
new file mode 100644
index 0000000000..2fc588514a
--- /dev/null
+++ b/c/src/librdbg/include/rdbg/m68k/reg.h
@@ -0,0 +1,13 @@
+/*
+ * Registers frame offset definition
+ *
+ * $Id$
+ */
+
+#define NBREGS 18
+
+typedef unsigned int regs[NBREGS];
+
+/* To be used in common code */
+typedef regs REGS;
+