summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-05-18 09:49:18 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-05-18 09:49:18 +0000
commit906979d106be653cd0c2ceec860f1e3fd621190b (patch)
tree614c96fdad124b5a879089edc51c2094140d7c66 /sys/arch/powerpc
parentc12bcfb0228a5dda70c310cb3d35a0e01e627f96 (diff)
Rename the MD db_stack_trace_cmd to db_stack_trace_print. Add an argument
that specifies which printf funciton it should use. Implement db_stack_trace_cmd in MI code. Thanks to miod@ for all the tests.
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r--sys/arch/powerpc/powerpc/trap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/powerpc/powerpc/trap.c b/sys/arch/powerpc/powerpc/trap.c
index 1729b29acef..4206115bf10 100644
--- a/sys/arch/powerpc/powerpc/trap.c
+++ b/sys/arch/powerpc/powerpc/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.48 2002/05/16 21:11:17 miod Exp $ */
+/* $OpenBSD: trap.c,v 1.49 2002/05/18 09:49:17 art Exp $ */
/* $NetBSD: trap.c,v 1.3 1996/10/13 03:31:37 christos Exp $ */
/*
@@ -59,6 +59,7 @@
#include <ddb/db_extern.h>
#include <ddb/db_sym.h>
+#include <ddb/db_output.h>
static int fix_unaligned(struct proc *p, struct trapframe *frame);
int badaddr(char *addr, u_int32_t len);
@@ -82,7 +83,7 @@ ppc_dumpbt(struct trapframe *frame)
/* dumpframe is defined in db_trace.c */
addr=frame->fixreg[1];
while (addr != 0) {
- addr = db_dumpframe(addr);
+ addr = db_dumpframe(addr, db_printf);
}
return;
}