]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Arch-abstraction:
authorNicholas Nethercote <n.nethercote@gmail.com>
Wed, 13 Oct 2004 14:50:35 +0000 (14:50 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Wed, 13 Oct 2004 14:50:35 +0000 (14:50 +0000)
- whoops, missed one ucontext use in last commit

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2752

coregrind/vg_signals.c

index 80cc82a158f9bd6521296c5d9ba77a830b80e7d5..7cbc81a3029841edbafc6e74bfaa49a41fb7bf20 100644 (file)
@@ -1829,7 +1829,7 @@ void vg_sync_signalhandler ( Int sigNo, vki_ksiginfo_t *info, struct vki_ucontex
         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, 
@@ -1837,7 +1837,7 @@ void vg_sync_signalhandler ( Int sigNo, vki_ksiginfo_t *info, struct vki_ucontex
                   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] = ' ';
@@ -1849,7 +1849,7 @@ void vg_sync_signalhandler ( Int sigNo, vki_ksiginfo_t *info, struct vki_ucontex
 
       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 */