]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc: Add 'show frame <addr>' to show an arbitrary trap frame
authorjhibbits <jhibbits@FreeBSD.org>
Sun, 1 Dec 2019 21:29:34 +0000 (21:29 +0000)
committerjhibbits <jhibbits@FreeBSD.org>
Sun, 1 Dec 2019 21:29:34 +0000 (21:29 +0000)
commit12b1f38c7c527c0a66e6384ef530588aac46bbd1
treedff484f8bb04fee524f48f7c063de62b88228e82
parentba49434d9300876ed37481dd78f6a41e1f2a7f2a
powerpc: Add 'show frame <addr>' to show an arbitrary trap frame

This lets us print, for example, the user's trap frame when a panic occurs.
The frame address is given in the backtrace at the trap point, which can
then be passed to 'show frame'.  This is useful for debugging as it can show
inputs that lead to a panic or fault.  It can also be used to print trap
frames from other CPUs that get stuck.

i386 already has a similar command, but no others do.
sys/powerpc/powerpc/machdep.c