diff options
Diffstat (limited to 'sys/arch/sh')
-rw-r--r-- | sys/arch/sh/sh/db_trace.c | 5 |
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? */ |