diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2001-09-15 21:15:04 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2001-09-15 21:15:04 +0000 |
commit | 1b74d91209f02f8f5f0280a7a1d1fbd8a7df1afb (patch) | |
tree | f32f5e2a8237e01d72ecfaa4d67a01d7942eb02a /sys | |
parent | 0e69df90558f3fd9a003af364ab4ad3757334d58 (diff) |
If ddb cannot find a symbol, do not print a useless address of
?+(64k), instead print 0+0x<address>, at least that is useful.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/macppc/macppc/db_trace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/macppc/macppc/db_trace.c b/sys/arch/macppc/macppc/db_trace.c index 8b329da05ef..ecec384b2bf 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.4 2001/09/09 23:56:40 drahn Exp $ */ +/* $OpenBSD: db_trace.c,v 1.5 2001/09/15 21:15:03 drahn Exp $ */ /* $NetBSD: db_trace.c,v 1.15 1996/02/22 23:23:41 gwr Exp $ */ /* @@ -128,8 +128,8 @@ db_dumpframe(u_int32_t pframe) db_find_sym_and_offset(lr-4, &name, &offset); if (!name) { - name = "?"; - offset = 65536; + name = "0"; + offset = lr-4; } db_printf("%08x: %s+0x%x fp %x nfp %x\n", lr-4, name, offset, pframe, nextframe); |