From 07d46f9c18481f03dca5df72fa9245cf9e0ab7b9 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Mon, 3 Jun 2013 04:19:21 +0000 Subject: [PATCH] MFamd64: when printing the trap information, show the %esp value. Sponsored by: The FreeBSD Foundation MFC after: 1 week --- sys/i386/i386/trap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c index b7ce91ddd7cf..9c8b62de8052 100644 --- a/sys/i386/i386/trap.c +++ b/sys/i386/i386/trap.c @@ -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)),