summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2001-09-05 20:49:56 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2001-09-05 20:49:56 +0000
commit06c90d727c64c0a6350020d7e56bb952f205b2f5 (patch)
treeb066157774441928e068d4412482b2b7a42ca1f9 /sys/arch
parentea0c01f32219d002d5c6247f1abc217f053be30e (diff)
Unbreak trace command on macppc, ddb passes -1 for count to
db_stack_trace_cmd() as "all entries", however db_expr_t is a signed variable.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/macppc/macppc/db_trace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/macppc/db_trace.c b/sys/arch/macppc/macppc/db_trace.c
index 723d7b100d1..ef077301df9 100644
--- a/sys/arch/macppc/macppc/db_trace.c
+++ b/sys/arch/macppc/macppc/db_trace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_trace.c,v 1.2 2001/09/05 16:15:02 drahn Exp $ */
+/* $OpenBSD: db_trace.c,v 1.3 2001/09/05 20:49:55 drahn Exp $ */
/* $NetBSD: db_trace.c,v 1.15 1996/02/22 23:23:41 gwr Exp $ */
/*
@@ -145,7 +145,7 @@ db_stack_trace_cmd(addr, have_addr, count, modif)
char *modif;
{
- if (count == 0)
+ if (count == 0 || count == -1)
count = INT_MAX;
if (have_addr == 0){
addr = ddb_regs.tf.fixreg[1];