diff options
Diffstat (limited to 'c/src/librdbg/include/rdbg/m68k')
-rw-r--r-- | c/src/librdbg/include/rdbg/m68k/.cvsignore | 2 | ||||
-rw-r--r-- | c/src/librdbg/include/rdbg/m68k/Makefile.am | 30 | ||||
-rw-r--r-- | c/src/librdbg/include/rdbg/m68k/rdbg_f.h | 39 | ||||
-rw-r--r-- | c/src/librdbg/include/rdbg/m68k/reg.h | 13 |
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; + |