summaryrefslogtreecommitdiff
path: root/sys/arch/alpha
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1997-07-06 16:20:24 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1997-07-06 16:20:24 +0000
commitb27327770309d76b08a2278cd2c00d56ce85cd29 (patch)
tree688ee20fbdf4f2a812d5db25aa96d6e5f0beabf0 /sys/arch/alpha
parenta499cf0a4efe26e475a5ef48637ef6ad1e6a866e (diff)
Make DDB support more complete (still faking a lot)
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r--sys/arch/alpha/include/db_machdep.h31
1 files changed, 30 insertions, 1 deletions
diff --git a/sys/arch/alpha/include/db_machdep.h b/sys/arch/alpha/include/db_machdep.h
index d3eaf612c83..fd7ba232ba6 100644
--- a/sys/arch/alpha/include/db_machdep.h
+++ b/sys/arch/alpha/include/db_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_machdep.h,v 1.4 1997/03/21 00:48:43 niklas Exp $ */
+/* $OpenBSD: db_machdep.h,v 1.5 1997/07/06 16:20:23 niklas Exp $ */
/* $NetBSD: db_machdep.h,v 1.2 1996/07/11 05:31:31 cgd Exp $ */
/*
@@ -54,4 +54,33 @@ db_regs_t ddb_regs; /* register state */
#define FIXUP_PC_AFTER_BREAK(regs) ((regs)->tf_regs[FRAME_PC] -= BKPT_SIZE)
+#define IS_BREAKPOINT_TRAP(type, code) 0
+#define IS_WATCHPOINT_TRAP(type, code) 0
+
+#define SOFTWARE_SSTEP
+
+/* Hack to skip GCC "unused" warnings. */
+#ifdef __GNUC__
+#define inst_trap_return(ins) ({(ins); 0;})
+#define inst_return(ins) ({(ins); 0;})
+#define inst_call(ins) ({(ins); 0;})
+#define inst_branch(ins) ({(ins); 0;})
+#define inst_load(ins) ({(ins); 0;})
+#define inst_store(ins) ({(ins); 0;})
+#else
+#define inst_trap_return(ins) 0
+#define inst_return(ins) 0
+#define inst_call(ins) 0
+#define inst_branch(ins) 0
+#define inst_load(ins) 0
+#define inst_store(ins) 0
+#endif
+
+#define next_instr_address(pc, bd) (pc + 4)
+
+/* XXX temporary hack until we implement singlestepping */
+#define branch_taken(a, b, c, d) 0
+
+int kdb_trap __P((int, int, db_regs_t *));
+
#endif /* _ALPHA_DB_MACHDEP_H_ */