summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-05-18 17:55:51 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-05-18 17:55:51 +0000
commit21bbb8cdc8d79bafd5fd05ad8c9f0e91d021929b (patch)
tree6658e417050e0b71dd4eadf2e28a6328fd94a2d4 /sys
parentec6c30847274adc9ee0891db4ee29aa47548e610 (diff)
Until we start supporting various modifiers to trace, we have
to treat the 'addr' the same way on all archs. This means that alpha can't do anything with the addr because we need a complete trap frame to be able to print a trace.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/alpha/alpha/db_trace.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/alpha/alpha/db_trace.c b/sys/arch/alpha/alpha/db_trace.c
index a56939b18c3..6cbca92d206 100644
--- a/sys/arch/alpha/alpha/db_trace.c
+++ b/sys/arch/alpha/alpha/db_trace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_trace.c,v 1.11 2002/05/18 09:49:16 art Exp $ */
+/* $OpenBSD: db_trace.c,v 1.12 2002/05/18 17:55:50 art Exp $ */
/*
* Copyright (c) 1997 Niklas Hallqvist. All rights reserverd.
@@ -197,7 +197,11 @@ db_stack_trace_print(addr, have_addr, count, modif, pr)
if (count == -1)
count = 65535;
- regs = have_addr ? (db_regs_t *)addr : DDB_REGS;
+ if (have_addr) {
+ (*pr)("alpha trace requires a trap frame... giving up.\n");
+ return;
+ }
+ regs = DDB_REGS;
trapframe:
/* remember where various registers are stored */
for (i = 0; i < 31; i++)