svn commit: r344961 - head/sys/powerpc/powerpc
Justin Hibbits
jhibbits at FreeBSD.org
Sat Mar 9 03:24:40 UTC 2019
Author: jhibbits
Date: Sat Mar 9 03:24:39 2019
New Revision: 344961
URL: https://svnweb.freebsd.org/changeset/base/344961
Log:
powerpc: Print trap frame address in ddb backtraces
Registers visible from 'show reg' don't always match the registers from the
offending trap frame. Knowing the frame address lets one examine the
registers manually.
MFC after: 1 week
Modified:
head/sys/powerpc/powerpc/db_trace.c
Modified: head/sys/powerpc/powerpc/db_trace.c
==============================================================================
--- head/sys/powerpc/powerpc/db_trace.c Sat Mar 9 03:18:37 2019 (r344960)
+++ head/sys/powerpc/powerpc/db_trace.c Sat Mar 9 03:24:39 2019 (r344961)
@@ -277,7 +277,7 @@ db_backtrace(struct thread *td, db_addr_t fp, int coun
if (tf->exc == EXC_DSI)
db_printf(" sr=%#x",
(uint32_t)tf->cpu.aim.dsisr);
- db_printf("\n");
+ db_printf(" frame=%p\n", tf);
stackframe = (db_addr_t) tf->fixreg[1];
if (kernel_only && (tf->srr1 & PSL_PR))
break;
More information about the svn-src-all
mailing list