Author: sewardj
Date: 2007-11-28 01:50:55 +0000 (Wed, 28 Nov 2007)
New Revision: 7246

Log:
Dump extraneous code.

Modified:
   trunk/coregrind/vg_preloaded.c


Modified: trunk/coregrind/vg_preloaded.c
===================================================================
--- trunk/coregrind/vg_preloaded.c      2007-11-28 01:27:03 UTC (rev 7245)
+++ trunk/coregrind/vg_preloaded.c      2007-11-28 01:50:55 UTC (rev 7246)
@@ -70,61 +70,3 @@
 /*--------------------------------------------------------------------*/
 /*--- 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 <stdio.h>
-#include <pthread.h>
-
-// pthread_create
-PTH_FUNC(int, pthreadZucreateZAZa, // [EMAIL PROTECTED]
-              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


-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Valgrind-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-developers

Reply via email to