Print the %rip value for uprintf_signal.

MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2012-10-14 17:08:46 +00:00
parent 806efacae0
commit 802431fa2e

View File

@ -617,8 +617,10 @@ trap(struct trapframe *frame)
ksi.ksi_addr = (void *)addr;
if (uprintf_signal) {
uprintf("pid %d comm %s: signal %d err %lx code %d type %d "
"addr 0x%lx <%02x %02x %02x %02x %02x %02x %02x %02x>\n",
"addr 0x%lx rip 0x%lx "
"<%02x %02x %02x %02x %02x %02x %02x %02x>\n",
p->p_pid, p->p_comm, i, frame->tf_err, ucode, type, addr,
frame->tf_rip,
fubyte((void *)(frame->tf_rip + 0)),
fubyte((void *)(frame->tf_rip + 1)),
fubyte((void *)(frame->tf_rip + 2)),