|
From: <sv...@va...> - 2013-10-03 22:37:04
|
Author: philippe
Date: Thu Oct 3 22:36:54 2013
New Revision: 13612
Log:
Fix compilation problem of memcheck/tests/leak-segv-jmp on ppc32
With the change, the test compiles on ppc32.
However, the test fails miserably with
Segmentation fault
while the whole purpose of the test was to see the leak search
would *not* segfault.
More investigations needed, but still committing as is to let
the tests compile and run.
Modified:
trunk/memcheck/tests/leak-segv-jmp.c
Modified: trunk/memcheck/tests/leak-segv-jmp.c
==============================================================================
--- trunk/memcheck/tests/leak-segv-jmp.c (original)
+++ trunk/memcheck/tests/leak-segv-jmp.c Thu Oct 3 22:36:54 2013
@@ -7,14 +7,15 @@
#include <sys/mman.h>
#include <sys/syscall.h>
-typedef unsigned long UWord;
+typedef unsigned long UWord;
+typedef unsigned long long int ULong;
+// Below code is copied from m_syscall.c
+// Refer to this file for syscall convention.
+#if defined(VGP_x86_linux)
extern UWord do_syscall_WRK (UWord syscall_no,
UWord a1, UWord a2, UWord a3,
UWord a4, UWord a5, UWord a6
);
-// Below code is copied from m_syscall.c
-// Refer to this file for syscall convention.
-#if defined(VGP_x86_linux)
asm(
".text\n"
".globl do_syscall_WRK\n"
@@ -104,7 +105,6 @@
".previous\n"
);
#elif defined(VGP_s390x_linux)
-typedef unsigned long long int ULong;
UWord do_syscall_WRK (
UWord syscall_no,
UWord arg1, UWord arg2, UWord arg3,
|