Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Unified Diff: vbug227570.patch

Issue 652040: Add patch for r11051 which fixes Valgrind bug 227570.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/valgrind/scripts/
Patch Set: Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build-valgrind-for-chromium.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vbug227570.patch
===================================================================
--- vbug227570.patch (revision 0)
+++ vbug227570.patch (revision 0)
@@ -0,0 +1,44 @@
+# See https://bugs.kde.org/show_bug.cgi?id=227570
+Index: coregrind/m_syswrap/priv_syswrap-generic.h
+===================================================================
+--- coregrind/m_syswrap/priv_syswrap-generic.h (revision 11050)
++++ coregrind/m_syswrap/priv_syswrap-generic.h (revision 11051)
+@@ -252,23 +252,23 @@
+
+ extern SysRes ML_(generic_PRE_sys_mmap) ( TId, UW, UW, UW, UW, UW, Off64T );
+
+-#define PRE_timeval_READ(zzname, zzarg) \
+- do { \
+- struct vki_timeval *zztv = (struct vki_timeval *)zzarg; \
+- PRE_FIELD_READ(zzname, zztv->tv_sec); \
+- PRE_FIELD_READ(zzname, zztv->tv_usec); \
++#define PRE_timeval_READ(zzname, zzarg) \
++ do { \
++ struct vki_timeval *zztv = (struct vki_timeval *)(zzarg); \
++ PRE_FIELD_READ(zzname, zztv->tv_sec); \
++ PRE_FIELD_READ(zzname, zztv->tv_usec); \
+ } while (0)
+-#define PRE_timeval_WRITE(zzname, zzarg) \
+- do { \
+- struct vki_timeval *zztv = (struct vki_timeval *)zzarg; \
+- PRE_FIELD_WRITE(zzname, zztv->tv_sec); \
+- PRE_FIELD_WRITE(zzname, zztv->tv_usec); \
++#define PRE_timeval_WRITE(zzname, zzarg) \
++ do { \
++ struct vki_timeval *zztv = (struct vki_timeval *)(zzarg); \
++ PRE_FIELD_WRITE(zzname, zztv->tv_sec); \
++ PRE_FIELD_WRITE(zzname, zztv->tv_usec); \
+ } while (0)
+-#define POST_timeval_WRITE(zzarg) \
+- do { \
+- struct vki_timeval *zztv = (struct vki_timeval *)zzarg; \
+- POST_FIELD_WRITE(zztv->tv_sec); \
+- POST_FIELD_WRITE(zztv->tv_usec); \
++#define POST_timeval_WRITE(zzarg) \
++ do { \
++ struct vki_timeval *zztv = (struct vki_timeval *)(zzarg); \
++ POST_FIELD_WRITE(zztv->tv_sec); \
++ POST_FIELD_WRITE(zztv->tv_usec); \
+ } while (0)
+
+
« no previous file with comments | « build-valgrind-for-chromium.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698