|
From: <sv...@va...> - 2006-02-12 15:45:51
|
Author: sewardj
Date: 2006-02-12 15:45:46 +0000 (Sun, 12 Feb 2006)
New Revision: 5641
Log:
Restore %EIP from the info passed to the handler (ucontext), so as to
be able to deal with signal handlers that mess with
third_arg->uc_mcontext.gregs[REG_EIP]. Apparently Wine does this.
Modified:
trunk/coregrind/m_sigframe/sigframe-x86-linux.c
Modified: trunk/coregrind/m_sigframe/sigframe-x86-linux.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_sigframe/sigframe-x86-linux.c 2006-02-12 15:42:20 U=
TC (rev 5640)
+++ trunk/coregrind/m_sigframe/sigframe-x86-linux.c 2006-02-12 15:45:46 U=
TC (rev 5641)
@@ -630,8 +630,7 @@
tst->arch.vex.guest_ESI =3D sc->esi;
tst->arch.vex.guest_EDI =3D sc->edi;
//:: tst->arch.vex.guest_eflags =3D sc->eflags;
-//:: tst->arch.vex.guest_EIP =3D sc->eip;
-
+ tst->arch.vex.guest_EIP =3D sc->eip;
tst->arch.vex.guest_CS =3D sc->cs;=20
tst->arch.vex.guest_SS =3D sc->ss;
tst->arch.vex.guest_DS =3D sc->ds;
|