generated it), but there was no jumpbuf set up. This means
it was actually generated by Valgrind internally.
*/
- struct vki_sigcontext *sc = &uc->uc_mcontext;
+ Addr context_ip = UCONTEXT_INSTR_PTR(uc);
Char buf[1024];
VG_(message)(Vg_DebugMsg,
sigNo, signame(sigNo));
buf[0] = 0;
- if (1 && !VG_(get_fnname)(sc->eip, buf+2, sizeof(buf)-5)) {
+ if (1 && !VG_(get_fnname)(context_ip, buf+2, sizeof(buf)-5)) {
Int len;
buf[0] = ' ';
VG_(message)(Vg_DebugMsg,
"si_code=%x Fault EIP: %p%s; Faulting address: %p",
- info->si_code, sc->eip, buf, info->_sifields._sigfault._addr);
+ info->si_code, context_ip, buf, info->_sifields._sigfault._addr);
if (0)
VG_(kill_self)(sigNo); /* generate a core dump */