PERFORCE change 31760 for review

Peter Wemm peter at FreeBSD.org
Fri May 23 20:51:17 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=31760

Change 31760 by peter at peter_hammer on 2003/05/23 20:51:01

	This was useful.  Record info about GPF's etc.

Affected files ...

.. //depot/projects/hammer/sys/amd64/amd64/trap.c#21 edit

Differences ...

==== //depot/projects/hammer/sys/amd64/amd64/trap.c#21 (text+ko) ====

@@ -256,6 +256,9 @@
 		default:
 			ucode = code + BUS_SEGM_FAULT ;
 			i = SIGBUS;
+printf("trap %d: pid %d err %p eva %p, rip %p, rax %p, rbx %p, rcx %p, rdx %p, rsp %p, rbp %p, rsi %p, rdi %p\n", type, p->p_pid, (void *)frame.tf_err,
+(void *)frame.tf_addr, (void *)frame.tf_rip, (void *)frame.tf_rax, (void *)frame.tf_rbx, (void *)frame.tf_rcx, (void *)frame.tf_rdx, (void *)frame.tf_rsp, (void *)frame.tf_rbp, (void *)frame.tf_rsi, (void *)frame.tf_rdi);
+
 			break;
 
 		case T_PAGEFLT:		/* page fault */


More information about the p4-projects mailing list