diff options
-rw-r--r-- | sys/arch/m68k/m68k/db_trace.c | 8 |
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, |