summaryrefslogtreecommitdiff
path: root/sys/ddb/db_run.c
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1998-03-16 08:44:33 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1998-03-16 08:44:33 +0000
commitcd264da84d16c2ce76eb7476eb671189597eb5cc (patch)
tree48a7ea367052e4ac7311c4e8b407da2f46b49c44 /sys/ddb/db_run.c
parent9a6423f710689314c537031cae46899205e13cb8 (diff)
Add the option SOFTWARE_SSTEP_EMUL. This is used with mips processors
together with SOFTWARE_SSTEP to do single stepping. We don't need the dual BP at branch since we always evaluate the correct next location.
Diffstat (limited to 'sys/ddb/db_run.c')
-rw-r--r--sys/ddb/db_run.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/ddb/db_run.c b/sys/ddb/db_run.c
index f912b404187..872daa9c505 100644
--- a/sys/ddb/db_run.c
+++ b/sys/ddb/db_run.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_run.c,v 1.10 1997/08/07 09:18:06 niklas Exp $ */
+/* $OpenBSD: db_run.c,v 1.11 1998/03/16 08:44:32 pefo Exp $ */
/* $NetBSD: db_run.c,v 1.8 1996/02/05 01:57:12 christos Exp $ */
/*
@@ -268,7 +268,9 @@ void
db_set_single_step(regs)
register db_regs_t *regs;
{
- db_addr_t pc = PC_REGS(regs), brpc;
+ db_addr_t pc = PC_REGS(regs);
+#ifndef SOFTWARE_SSTEP_EMUL
+ db_addr_t brpc;
u_int inst;
/*
@@ -286,6 +288,7 @@ db_set_single_step(regs)
pc = next_instr_address(pc, 1);
#endif
}
+#endif /*SOFTWARE_SSTEP_EMUL*/
pc = next_instr_address(pc, 0);
db_not_taken_bkpt = db_set_temp_breakpoint(pc);
}