summaryrefslogtreecommitdiff
path: root/sys/arch/sh
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2006-10-17 04:20:09 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2006-10-17 04:20:09 +0000
commit5ee542e27fdf4234db941cbb046a7cd4f5565853 (patch)
treee0545e46cd9758ff6215971116bd22c35cd637ee /sys/arch/sh
parenta46dba3f50b0da98e4d26fe1cbd8d205c8ce1cd4 (diff)
for now, we want traces.
Diffstat (limited to 'sys/arch/sh')
-rw-r--r--sys/arch/sh/sh/db_trace.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/sh/sh/db_trace.c b/sys/arch/sh/sh/db_trace.c
index 8228c26bf46..de5649fec68 100644
--- a/sys/arch/sh/sh/db_trace.c
+++ b/sys/arch/sh/sh/db_trace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_trace.c,v 1.1 2006/10/06 21:02:55 miod Exp $ */
+/* $OpenBSD: db_trace.c,v 1.2 2006/10/17 04:20:08 drahn Exp $ */
/* $NetBSD: db_trace.c,v 1.19 2006/01/21 22:10:59 uwe Exp $ */
/*-
@@ -86,6 +86,9 @@ db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count,
frame = ddb_regs.tf_r14;
callpc = ddb_regs.tf_spc;
+ if (count == 0 || count == -1)
+ count = INT_MAX;
+
lastframe = 0;
while (count > 0 && frame != 0) {
/* Are we crossing a trap frame? */