summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-11-16 22:02:06 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-11-16 22:02:06 +0000
commita893a9c1741b2616dcc7680a6ae9401c4521df95 (patch)
tree0dfe404645a3f2f196217feca4c292265c62351d /sys/arch
parent7841a5ecd796f632170c795f3ee29a08fa581eb0 (diff)
make stack trace print addrs if no symtab present; miod@ ok
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/m68k/m68k/db_trace.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/m68k/m68k/db_trace.c b/sys/arch/m68k/m68k/db_trace.c
index 279fb85a33b..95dc263e8b8 100644
--- a/sys/arch/m68k/m68k/db_trace.c
+++ b/sys/arch/m68k/m68k/db_trace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_trace.c,v 1.11 2001/08/12 12:03:02 heko Exp $ */
+/* $OpenBSD: db_trace.c,v 1.12 2001/11/16 22:02:05 mickey Exp $ */
/* $NetBSD: db_trace.c,v 1.20 1997/02/05 05:10:25 scottr Exp $ */
/*
@@ -535,12 +535,14 @@ db_stack_trace_cmd(addr, have_addr, count, modif)
pos.k_pc = 0;
} else {
db_find_sym_and_offset(pos.k_pc, &name, &val);
- if (name == 0)
+ if (name == 0) {
+ val = MAXINT;
name = "?";
+ }
}
db_printf("%s", name);
if (pos.k_entry != MAXINT && name) {
- char * entry_name;
+ const char * entry_name;
long e_val;
db_find_sym_and_offset(pos.k_entry, &entry_name,