Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Mike Frysinger (vapier)" <vapier@g.o>
Subject: gentoo-x86 commit in app-emulation/wine/files: wine-0.9.51-valgrind.patch
Date: Sat, 22 Dec 2007 07:37:40 +0000
vapier      07/12/22 07:37:40

  Added:                wine-0.9.51-valgrind.patch
  Log:
  Fix building with newer valgrinds #202542.
  (Portage version: 2.1.4_rc10)

Revision  Changes    Path
1.1                  app-emulation/wine/files/wine-0.9.51-valgrind.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/wine/files/wine-0.9.51-valgrind.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/wine/files/wine-0.9.51-valgrind.patch?rev=1.1&content-type=text/plain

Index: wine-0.9.51-valgrind.patch
===================================================================
http://bugs.gentoo.org/202542

fix from Rafal Muzylo building with newer versions of valgrind

--- dlls/ntdll/heap.c
+++ dlls/ntdll/heap.c
@@ -142,6 +142,8 @@
     if (TRACE_ON(heap) || WARN_ON(heap)) memset( ptr, ARENA_FREE_FILLER, size );
 #ifdef VALGRIND_MAKE_NOACCESS
     VALGRIND_DISCARD( VALGRIND_MAKE_NOACCESS( ptr, size ));
+#elif defined(VALGRIND_MAKE_MEM_NOACCESS)
+    VALGRIND_DISCARD( VALGRIND_MAKE_MEM_NOACCESS( ptr, size ));
 #endif
 }
 
@@ -150,6 +152,8 @@
 {
 #ifdef VALGRIND_MAKE_READABLE
     VALGRIND_DISCARD( VALGRIND_MAKE_READABLE( ptr, size ));
+#elif defined(VALGRIND_MAKE_MEM_DEFINED)
+    VALGRIND_DISCARD( VALGRIND_MAKE_MEM_DEFINED( ptr, size ));
 #endif
 }
 
@@ -158,6 +162,8 @@
 {
 #ifdef VALGRIND_MAKE_WRITABLE
     VALGRIND_DISCARD( VALGRIND_MAKE_WRITABLE( ptr, size ));
+#elif defined(VALGRIND_MAKE_MEM_UNDEFINED)
+    VALGRIND_DISCARD( VALGRIND_MAKE_MEM_UNDEFINED( ptr, size ));
 #endif
     if (TRACE_ON(heap) || WARN_ON(heap))
     {
@@ -165,6 +171,8 @@
 #ifdef VALGRIND_MAKE_WRITABLE
         /* make it uninitialized to valgrind again */
         VALGRIND_DISCARD( VALGRIND_MAKE_WRITABLE( ptr, size ));
+#elif defined(VALGRIND_MAKE_MEM_UNDEFINED)
+	VALGRIND_DISCARD( VALGRIND_MAKE_MEM_UNDEFINED( ptr, size ));
 #endif
     }
 }
--- dlls/ntdll/signal_i386.c
+++ dlls/ntdll/signal_i386.c
@@ -936,8 +936,10 @@
     }
 
     stack--;  /* push the stack_layout structure */
-#ifdef HAVE_VALGRIND_MEMCHECK_H
+#ifdef VALGRIND_MAKE_WRITABLE
     VALGRIND_MAKE_WRITABLE(stack, sizeof(*stack));
+#elif defined(VALGRIND_MAKE_MEM_UNDEFINED)
+     VALGRIND_MAKE_MEM_UNDEFINED(stack, sizeof(*stack));
 #endif
     stack->ret_addr     = (void *)0xdeadbabe;  /* raise_func must not return */
     stack->rec_ptr      = &stack->rec;



-- 
gentoo-commits@g.o mailing list


Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in app-emulation/wine: wine-0.9.51.ebuild ChangeLog
Next by thread:
gentoo-x86 commit in net-print/hplip: hplip-2.7.10.ebuild ChangeLog
Previous by date:
gentoo-x86 commit in app-emulation/wine: wine-0.9.51.ebuild ChangeLog
Next by date:
gentoo-x86 commit in net-print/hplip: hplip-2.7.10.ebuild ChangeLog


Updated Sep 28, 2010

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.