[Midnightbsd-cvs] src [9787] trunk/sys/i386/i386/trap.c: when printing the trap info, show the esp value

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Feb 24 14:23:02 EST 2018


Revision: 9787
          http://svnweb.midnightbsd.org/src/?rev=9787
Author:   laffer1
Date:     2018-02-24 14:23:01 -0500 (Sat, 24 Feb 2018)
Log Message:
-----------
when printing the trap info, show the esp value

Modified Paths:
--------------
    trunk/sys/i386/i386/trap.c

Modified: trunk/sys/i386/i386/trap.c
===================================================================
--- trunk/sys/i386/i386/trap.c	2018-02-22 13:35:52 UTC (rev 9786)
+++ trunk/sys/i386/i386/trap.c	2018-02-24 19:23:01 UTC (rev 9787)
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__MBSDID("$MidnightBSD$");
 
 /*
  * 386 Trap and System call handling
@@ -766,10 +766,10 @@
 	ksi.ksi_trapno = type;
 	if (uprintf_signal) {
 		uprintf("pid %d comm %s: signal %d err %x code %d type %d "
-		    "addr 0x%x eip 0x%08x "
+		    "addr 0x%x esp 0x%08x eip 0x%08x "
 		    "<%02x %02x %02x %02x %02x %02x %02x %02x>\n",
 		    p->p_pid, p->p_comm, i, frame->tf_err, ucode, type, addr,
-		    frame->tf_eip,
+		    frame->tf_esp, frame->tf_eip,
 		    fubyte((void *)(frame->tf_eip + 0)),
 		    fubyte((void *)(frame->tf_eip + 1)),
 		    fubyte((void *)(frame->tf_eip + 2)),



More information about the Midnightbsd-cvs mailing list