Module Name:    src
Committed By:   matt
Date:           Wed Aug 26 14:32:53 UTC 2009

Modified Files:
        src/sys/arch/mips/mips [matt-nb5-mips64]: mips_fputrap.c

Log Message:
If you are going to print the instruction, print the PC of the instruction too!


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.5.66.1 src/sys/arch/mips/mips/mips_fputrap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/mips/mips_fputrap.c
diff -u src/sys/arch/mips/mips/mips_fputrap.c:1.5 src/sys/arch/mips/mips/mips_fputrap.c:1.5.66.1
--- src/sys/arch/mips/mips/mips_fputrap.c:1.5	Tue Dec 26 23:26:13 2006
+++ src/sys/arch/mips/mips/mips_fputrap.c	Wed Aug 26 14:32:53 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: mips_fputrap.c,v 1.5 2006/12/26 23:26:13 martin Exp $ */
+/* $NetBSD: mips_fputrap.c,v 1.5.66.1 2009/08/26 14:32:53 matt Exp $ */
 
 /*
  * Copyright (c) 2004
@@ -32,6 +32,7 @@
 #include <sys/signal.h>
 #include <sys/siginfo.h>
 #include <mips/cpuregs.h>
+#include <mips/regnum.h>
 
 #ifndef SOFTFLOAT
 void mips_fpuexcept(struct lwp *, unsigned int);
@@ -95,7 +96,8 @@
 	ksiginfo_t ksi;
 
 #if DEBUG
-	printf("emul_trapsignal(%x,%x)\n", sig, code);
+	printf("emul_trapsignal(%x,%x,%#"PRIxREGISTER")\n",
+	   sig, code, l->l_md.md_regs->f_regs[_R_PC]);
 #endif
 
 	KSI_INIT_TRAP(&ksi);

Reply via email to