From 3ef6a19b3a05b05954f5db55159c55a4de84be6b Mon Sep 17 00:00:00 2001 From: grehan Date: Wed, 4 Jun 2008 07:32:49 +0000 Subject: Add link register to fatal trap printout to better diagnose NULL function pointer derefs. --- sys/powerpc/aim/trap.c | 1 + 1 file changed, 1 insertion(+) 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", -- cgit v1.1