if (VG_(clo_trace_signals))
VG_(message)(Vg_DebugMsg,
- "sigframe_create (thread %d): "
+ "sigframe_create (thread %u): "
"next RIP=%#lx, next RSP=%#lx\n",
tid, (Addr)handler, (Addr)frame );
}
if (0)
VG_(printf)("pushed signal frame; %%RSP now = %#lx, "
"next %%RIP = %#llx, status=%d\n",
- rsp, tst->arch.vex.guest_RIP, tst->status);
+ rsp, tst->arch.vex.guest_RIP, (Int)tst->status);
}
{
if (frame->magicPI != 0x31415927 ||
frame->magicE != 0x27182818) {
- VG_(message)(Vg_UserMsg, "Thread %d return signal frame "
+ VG_(message)(Vg_UserMsg, "Thread %u return signal frame "
"corrupted. Killing process.\n",
tst->tid);
VG_(set_default_handler)(VKI_SIGSEGV);
if (VG_(clo_trace_signals))
VG_(message)(
Vg_DebugMsg,
- "VG_(signal_return) (thread %d): isRT=%d valid magic; RIP=%#llx\n",
+ "VG_(signal_return) (thread %u): isRT=%d valid magic; RIP=%#llx\n",
tid, isRT, tst->arch.vex.guest_RIP);
/* tell the tools */
if (VG_(clo_trace_signals))
VG_(message)(Vg_DebugMsg,
- "vg_pop_signal_frame (thread %d): "
+ "vg_pop_signal_frame (thread %u): "
"isRT=%d valid magic; PC=%#x\n",
tid, has_siginfo, tst->arch.vex.guest_R15T);
if (VG_(clo_trace_signals))
VG_(message)(Vg_DebugMsg,
- "vg_pop_signal_frame (thread %d): "
+ "vg_pop_signal_frame (thread %u): "
"isRT=%d valid magic; PC=%#llx\n",
tid, has_siginfo, tst->arch.vex.guest_PC);
if (stackseg == NULL || !stackseg->hasR || !stackseg->hasW) {
VG_(umsg)("Can't extend stack to %#lx during signal delivery for "
- "thread %d:\n", addr, tid);
+ "thread %u:\n", addr, tid);
if (stackseg == NULL)
VG_(umsg)(" no stack segment\n");
else
VG_TRACK(die_mem_stack_signal, sp, frame_size);
if (VG_(clo_trace_signals))
VG_(message)( Vg_DebugMsg,
- "VG_(signal_return) (thread %d): isRT=%d valid magic; EIP=%#x\n",
+ "VG_(signal_return) (thread %u): isRT=%d valid magic; EIP=%#x\n",
tid, isRT, tst->arch.vex.guest_PC);
/* tell the tools */
VG_TRACK( post_deliver_signal, tid, sigNo );
VG_TRACK(die_mem_stack_signal, sp, frame_size);
if (VG_(clo_trace_signals))
VG_(message)(Vg_DebugMsg,
- "VG_(signal_return) (thread %d): isRT=%d valid magic; EIP=%#llx\n",
+ "VG_(signal_return) (thread %u): isRT=%d valid magic; EIP=%#llx\n",
tid, isRT, tst->arch.vex.guest_PC);
/* tell the tools */
VG_TRACK( post_deliver_signal, tid, sigNo );
if (0)
VG_(printf)("pushed signal frame; %%R1 now = %#lx, "
"next %%CIA = %#x, status=%d\n",
- sp, tst->arch.vex.guest_CIA, tst->status);
+ sp, tst->arch.vex.guest_CIA, (Int)tst->status);
}
if (VG_(clo_trace_signals))
VG_(message)(Vg_DebugMsg,
- "vg_pop_signal_frame (thread %d): "
+ "vg_pop_signal_frame (thread %u): "
"isRT=%d valid magic; EIP=%#x\n",
tid, has_siginfo, tst->arch.vex.guest_CIA);
//.. if (VG_(clo_trace_signals))
//.. VG_(message)(
//.. Vg_DebugMsg,
-//.. "VG_(signal_return) (thread %d): isRT=%d valid magic; EIP=%p",
+//.. "VG_(signal_return) (thread %u): isRT=%d valid magic; EIP=%p",
//.. tid, isRT, tst->arch.vex.guest_EIP);
//..
//.. /* tell the tools */
if (0)
VG_(printf)("pushed signal frame; %%R1 now = %#lx, "
"next %%CIA = %#llx, status=%d\n",
- sp, tst->arch.vex.guest_CIA, tst->status);
+ sp, tst->arch.vex.guest_CIA, (Int)tst->status);
}
if (VG_(clo_trace_signals))
VG_(message)(Vg_DebugMsg,
- "vg_pop_signal_frame (thread %d): isRT=%d "
+ "vg_pop_signal_frame (thread %u): isRT=%d "
"valid magic; EIP=%#llx\n",
tid, has_siginfo, tst->arch.vex.guest_CIA);
{
if (frame->magicPI != 0x31415927 ||
frame->magicE != 0x27182818) {
- VG_(message)(Vg_UserMsg, "Thread %d return signal frame "
+ VG_(message)(Vg_UserMsg, "Thread %u return signal frame "
"corrupted. Killing process.\n",
tst->tid);
VG_(set_default_handler)(VKI_SIGSEGV);
Addr sp;
ThreadState* tst;
SizeT size;
- Int sigNo;
+ Int sigNo;
tst = VG_(get_ThreadState)(tid);
if (VG_(clo_trace_signals))
VG_(message)(
Vg_DebugMsg,
- "VG_(sigframe_destroy) (thread %d): isRT=%d valid magic; IP=%#llx\n",
+ "VG_(sigframe_destroy) (thread %u): isRT=%d valid magic; IP=%#llx\n",
tid, isRT, tst->arch.vex.guest_IA);
/* tell the tools */
if (VG_(clo_trace_signals))
VG_(message)(Vg_DebugMsg,
- "sigframe_create (thread %d): next IP=%#lx, "
+ "sigframe_create (thread %u): next IP=%#lx, "
"next SP=%#lx\n",
tid, (Addr)handler, (Addr)frame);
}
/* Returning from a signal handler. */
if (VG_(clo_trace_signals))
VG_(message)(Vg_DebugMsg,
- "sigframe_return (thread %d): IP=%#lx\n",
+ "sigframe_return (thread %u): IP=%#lx\n",
tid, VG_(get_IP)(tid));
/* Tell the tool. */
if (0)
VG_(printf)("pushed signal frame; sp now = %lx, "
"next %pc = %lx, status=%d\n",
- (Addr)frame, tst->arch.vex.guest_pc, tst->status);
+ (Addr)frame, tst->arch.vex.guest_pc, (Int)tst->status);
}
/* EXPORTED */
if (0)
VG_(printf)("destroy signal frame; sp = %lx, "
" %pc = %lx, status=%d\n",
- (Addr)frame, tst->arch.vex.guest_pc, tst->status);
+ (Addr)frame, tst->arch.vex.guest_pc, (Int)tst->status);
frame_size = sizeof(*frame);
mc = &ucp->uc_mcontext;
VG_TRACK(die_mem_stack_signal, sp, frame_size);
if (VG_(clo_trace_signals))
VG_(message)( Vg_DebugMsg,
- "VG_(signal_return) (thread %d): isRT=%d valid magic; EIP=%#x\n",
+ "VG_(signal_return) (thread %u): isRT=%d valid magic; EIP=%#x\n",
tid, isRT, tst->arch.vex.guest_pc);
/* tell the tools */
VG_TRACK( post_deliver_signal, tid, sigNo );
if (VG_(clo_trace_signals))
VG_(message)(Vg_DebugMsg,
- "sigframe_create (thread %d): "
+ "sigframe_create (thread %u): "
"next EIP=%#lx, next ESP=%#lx\n",
tid, (Addr)handler, (Addr)frame );
}
if (VG_(clo_trace_signals))
VG_(message)(Vg_DebugMsg,
- "sigframe_destroy (thread %d): "
+ "sigframe_destroy (thread %u): "
"valid magic; next EIP=%#x\n",
tid, tst->arch.vex.guest_EIP);
if (0)
VG_(printf)("pushed signal frame; %%ESP now = %#lx, "
"next %%EIP = %#x, status=%d\n",
- esp, tst->arch.vex.guest_EIP, tst->status);
+ esp, tst->arch.vex.guest_EIP, (Int)tst->status);
}
{
if (frame->magicPI != 0x31415927 ||
frame->magicE != 0x27182818) {
- VG_(message)(Vg_UserMsg, "Thread %d return signal frame "
+ VG_(message)(Vg_UserMsg, "Thread %u return signal frame "
"corrupted. Killing process.\n",
tst->tid);
VG_(set_default_handler)(VKI_SIGSEGV);
if (VG_(clo_trace_signals))
VG_(message)(
Vg_DebugMsg,
- "VG_(signal_return) (thread %d): isRT=%d valid magic; EIP=%#x\n",
+ "VG_(signal_return) (thread %u): isRT=%d valid magic; EIP=%#x\n",
tid, isRT, tst->arch.vex.guest_EIP);
/* tell the tools */