Author: kib
Date: Mon Jun  3 04:19:21 2013
New Revision: 251283
URL: http://svnweb.freebsd.org/changeset/base/251283

Log:
  MFamd64: when printing the trap information, show the %esp value.
  
  Sponsored by: The FreeBSD Foundation
  MFC after:    1 week

Modified:
  head/sys/i386/i386/trap.c

Modified: head/sys/i386/i386/trap.c
==============================================================================
--- head/sys/i386/i386/trap.c   Mon Jun  3 04:16:48 2013        (r251282)
+++ head/sys/i386/i386/trap.c   Mon Jun  3 04:19:21 2013        (r251283)
@@ -767,10 +767,10 @@ trap(struct trapframe *frame)
        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)),
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to