diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-10-19 15:35:21 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-10-19 15:35:21 +0000 |
commit | c92fb641f0a4ddb230b18871d9bfe886b48ab1b4 (patch) | |
tree | 48440b23a455ff7358579576422e1c309c579c00 /c/src/librdbg/include/rdbg/m68k/rdbg_f.h | |
parent | 2000-10-19 Antti P Miettinen <anmietti@trshp.ntc.nokia.com> (diff) | |
download | rtems-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/rdbg_f.h')
-rw-r--r-- | c/src/librdbg/include/rdbg/m68k/rdbg_f.h | 39 |
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 + + + |