From: Julian Seward Date: Wed, 28 Nov 2007 01:50:55 +0000 (+0000) Subject: Dump extraneous code. X-Git-Tag: svn/VALGRIND_3_3_0~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eadeac41970aa106edd0f80a6f69b8235cf91e51;p=thirdparty%2Fvalgrind.git Dump extraneous code. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7246 --- diff --git a/coregrind/vg_preloaded.c b/coregrind/vg_preloaded.c index efee1544f3..fc6857bb30 100644 --- a/coregrind/vg_preloaded.c +++ b/coregrind/vg_preloaded.c @@ -70,61 +70,3 @@ void VG_NOTIFY_ON_LOAD(freeres)( void ) /*--------------------------------------------------------------------*/ /*--- end ---*/ /*--------------------------------------------------------------------*/ - -#if 0 - -#define PTH_FUNC(ret_ty, f, args...) \ - ret_ty VG_WRAP_FUNCTION_ZZ(libpthreadZdsoZd0,f)(args); \ - ret_ty VG_WRAP_FUNCTION_ZZ(libpthreadZdsoZd0,f)(args) - -#include -#include - -// pthread_create -PTH_FUNC(int, pthreadZucreateZAZa, // pthread_create@* - pthread_t *thread, const pthread_attr_t *attr, - void *(*start) (void *), void *arg) -{ - int ret; - void* fn; - VALGRIND_GET_NRADDR(fn); - fprintf(stderr, "<< pthread_create wrapper"); fflush(stderr); - - CALL_FN_W_WWWW(ret, fn, thread,attr,start,arg); - - fprintf(stderr, " -> %d >>\n", ret); - return ret; -} - -// pthread_mutex_lock -PTH_FUNC(int, pthreadZumutexZulock, // pthread_mutex_lock - pthread_mutex_t *mutex) -{ - int ret; - void* fn; - VALGRIND_GET_ORIG_FN(fn); - fprintf(stderr, "<< pthread_mxlock %p", mutex); fflush(stderr); - - CALL_FN_W_W(ret, fn, mutex); - - fprintf(stderr, " -> %d >>\n", ret); - return ret; -} - -// pthread_mutex_unlock -PTH_FUNC(int, pthreadZumutexZuunlock, // pthread_mutex_unlock - pthread_mutex_t *mutex) -{ - int ret; - void* fn; - VALGRIND_GET_ORIG_FN(fn); - - fprintf(stderr, "<< pthread_mxunlk %p", mutex); fflush(stderr); - - CALL_FN_W_W(ret, fn, mutex); - - fprintf(stderr, " -> %d >>\n", ret); - return ret; -} - -#endif