diff options
author | grehan <grehan@FreeBSD.org> | 2008-06-04 07:32:49 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2008-06-04 07:32:49 +0000 |
commit | 3ef6a19b3a05b05954f5db55159c55a4de84be6b (patch) | |
tree | 26ab1d0d1050460950874e247c13109cfaeb99d1 /sys/powerpc/aim/trap.c | |
parent | 794a4932cb1d8dbf5e97bb94e473836c09d633c0 (diff) | |
download | FreeBSD-src-3ef6a19b3a05b05954f5db55159c55a4de84be6b.zip FreeBSD-src-3ef6a19b3a05b05954f5db55159c55a4de84be6b.tar.gz |
Add link register to fatal trap printout to better diagnose NULL
function pointer derefs.
Diffstat (limited to 'sys/powerpc/aim/trap.c')
-rw-r--r-- | sys/powerpc/aim/trap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/powerpc/aim/trap.c b/sys/powerpc/aim/trap.c index 9df017d..0a3827d 100644 --- a/sys/powerpc/aim/trap.c +++ b/sys/powerpc/aim/trap.c @@ -300,6 +300,7 @@ printtrap(u_int vector, struct trapframe *frame, int isfatal, int user) } printf(" srr0 = 0x%x\n", frame->srr0); printf(" srr1 = 0x%x\n", frame->srr1); + printf(" lr = 0x%x\n", frame->lr); printf(" curthread = %p\n", curthread); if (curthread != NULL) printf(" pid = %d, comm = %s\n", |