Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 May 2014 14:08:19 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r265190 - user/dchagin/lemul/sys/amd64/amd64
Message-ID:  <201405011408.s41E8JHh074831@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dchagin
Date: Thu May  1 14:08:19 2014
New Revision: 265190
URL: http://svnweb.freebsd.org/changeset/base/265190

Log:
  Temporarily print out more registers in uprintf_signal.

Modified:
  user/dchagin/lemul/sys/amd64/amd64/trap.c

Modified: user/dchagin/lemul/sys/amd64/amd64/trap.c
==============================================================================
--- user/dchagin/lemul/sys/amd64/amd64/trap.c	Thu May  1 14:05:36 2014	(r265189)
+++ user/dchagin/lemul/sys/amd64/amd64/trap.c	Thu May  1 14:08:19 2014	(r265190)
@@ -610,11 +610,31 @@ trap(struct trapframe *frame)
 	ksi.ksi_trapno = type;
 	ksi.ksi_addr = (void *)addr;
 	if (uprintf_signal) {
-		uprintf("pid %d comm %s: signal %d err %lx code %d type %d "
-		    "addr 0x%lx rsp 0x%lx rip 0x%lx "
+		uprintf("pid %05d thread %p comm %s: signal %d err %lx code %d type %d\n"
+		    "addr 0x%lx rip 0x%lx rax 0x%lx\n"
+		    "rdi 0x%lx rsi 0x%lx rdx 0x%lx rcx 0x%lx\n"
+		    "r8 0x%lx r9 0x%lx rbx 0x%lx rbp 0x%lx\n"
+		    "r10 0x%lx r11 0x%lx r12 0x%lx r13 0x%lx\n"
+		    "r14 0x%lx r15 0x%lx\n"
+		    "<%02x %02x %02x %02x %02x %02x %02x %02x>\n"
 		    "<%02x %02x %02x %02x %02x %02x %02x %02x>\n",
-		    p->p_pid, p->p_comm, i, frame->tf_err, ucode, type, addr,
-		    frame->tf_rsp, frame->tf_rip,
+		    p->p_pid, td, p->p_comm, i, frame->tf_err, ucode, type,
+		    addr, frame->tf_rip, frame->tf_rax,
+		    frame->tf_rdi, frame->tf_rsi,
+		    frame->tf_rdx, frame->tf_rcx,
+		    frame->tf_r8, frame->tf_r9,
+		    frame->tf_rbx, frame->tf_rbp,
+		    frame->tf_r10, frame->tf_r11,
+		    frame->tf_r12, frame->tf_r13,
+		    frame->tf_r14, frame->tf_r15,
+		    fubyte((void *)(frame->tf_rip - 8)),
+		    fubyte((void *)(frame->tf_rip - 7)),
+		    fubyte((void *)(frame->tf_rip - 6)),
+		    fubyte((void *)(frame->tf_rip - 5)),
+		    fubyte((void *)(frame->tf_rip - 4)),
+		    fubyte((void *)(frame->tf_rip - 3)),
+		    fubyte((void *)(frame->tf_rip - 2)),
+		    fubyte((void *)(frame->tf_rip - 1)),
 		    fubyte((void *)(frame->tf_rip + 0)),
 		    fubyte((void *)(frame->tf_rip + 1)),
 		    fubyte((void *)(frame->tf_rip + 2)),



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405011408.s41E8JHh074831>