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
This commit is contained in:
Justin Hibbits 2019-03-09 03:24:39 +00:00
parent 66306e6acd
commit 093f7de620

View File

@ -277,7 +277,7 @@ db_backtrace(struct thread *td, db_addr_t fp, int count)
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;