aboutsummaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorsewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2014-06-21 09:40:19 +0000
committersewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2014-06-21 09:40:19 +0000
commitc3e09f66fa315ff9b207db6925a80bc5693ce838 (patch)
tree30752712fed9e7d8308714d43ddbe5e3b3791ab9 /shared
parent34ffca6aec7d1e6f18d468cd5849e3e95226fcb6 (diff)
downloadvalgrind-c3e09f66fa315ff9b207db6925a80bc5693ce838.tar.gz
OS X 10.9: add intercepts for
libsystem_platform.dylib : _platform_strchr libsystem_c.dylib : strlen libsystem_platform.dylib : _platform_strcmp git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14073 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'shared')
-rw-r--r--shared/vg_replace_strmem.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/shared/vg_replace_strmem.c b/shared/vg_replace_strmem.c
index a6bde65c4..0e071f0b2 100644
--- a/shared/vg_replace_strmem.c
+++ b/shared/vg_replace_strmem.c
@@ -238,12 +238,10 @@ static inline void my_exit ( int x )
# endif
#elif defined(VGO_darwin)
- //STRCHR(VG_Z_LIBC_SONAME, strchr)
- //STRCHR(VG_Z_LIBC_SONAME, index)
- //STRCHR(VG_Z_DYLD, strchr)
- //STRCHR(VG_Z_DYLD, index)
STRCHR(VG_Z_LIBC_SONAME, strchr)
-
+# if DARWIN_VERS == DARWIN_10_9
+ STRCHR(libsystemZuplatformZddylib, _platform_strchr)
+# endif
#endif
@@ -422,9 +420,10 @@ static inline void my_exit ( int x )
# endif
#elif defined(VGO_darwin)
- //STRLEN(VG_Z_LIBC_SONAME, strlen)
STRLEN(VG_Z_LIBC_SONAME, strlen)
-
+# if DARWIN_VERS == DARWIN_10_9
+ STRLEN(libsystemZucZddylib, strlen)
+# endif
#endif
@@ -760,8 +759,10 @@ static inline void my_exit ( int x )
# endif
#elif defined(VGO_darwin)
- //STRCMP(VG_Z_LIBC_SONAME, strcmp)
STRCMP(VG_Z_LIBC_SONAME, strcmp)
+# if DARWIN_VERS == DARWIN_10_9
+ STRCMP(libsystemZuplatformZddylib, _platform_strcmp)
+# endif
#endif