Skip to contentSkip to conversation

[4641] Restore ARM signal handler compilation on glibc < 2.5 (Blue Swirl).

Qemu-devel Andrzej Zaborowski 2 participants 2 messages Jun 2, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 4641

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4641
Author:   balrog
Date:     2008-06-02 01:01:18 +0000 (Mon, 02 Jun 2008)

Log Message:
-----------
Restore ARM signal handler compilation on glibc < 2.5 (Blue Swirl).

Modified Paths:
--------------
trunk/cpu-exec.c

Modified: trunk/cpu-exec.c
===================================================================

cpu-exec.c +4 -0
@@ -1320,7 +1320,11 @@
     unsigned long pc;
     int is_write;
 
+#if (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ =< 3))
+    pc = uc->uc_mcontext.gregs[R15];
+#else
     pc = uc->uc_mcontext.arm_pc;
+#endif
     /* XXX: compute is_write */
     is_write = 0;
     return handle_cpu_signal(pc, (unsigned long)info->si_addr,
#1 lore raw

In message: <[email protected]>
Andrzej Zaborowski <[email protected]> writes:
: Restore ARM signal handler compilation on glibc < 2.5 (Blue Swirl). : +#if (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ =< 3))

These aren't saying the same thing. Fix the comment or fix the code :-)

Warner