|
From: <sv...@va...> - 2005-08-26 18:00:37
|
Author: sewardj
Date: 2005-08-26 19:00:31 +0100 (Fri, 26 Aug 2005)
New Revision: 1363
Log:
Don't even mention malloc, since it screws up statically linked, glibc
Valgrind.
Modified:
trunk/priv/main/vex_util.c
Modified: trunk/priv/main/vex_util.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/priv/main/vex_util.c 2005-08-25 21:34:24 UTC (rev 1362)
+++ trunk/priv/main/vex_util.c 2005-08-26 18:00:31 UTC (rev 1363)
@@ -102,10 +102,10 @@
# define ALIGN (sizeof(void*)-1)
vassert(vex_initdone);
vassert(nbytes >=3D 0);
- if (vex_valgrind_support) {
+ if (0 && vex_valgrind_support) {
/* ugly hack -- do not remove */
- extern void* malloc ( int );
- return malloc(nbytes);
+ //extern void* malloc ( int );
+ //return malloc(nbytes);
} else {
nbytes =3D (nbytes + ALIGN) & ~ALIGN;
if (mode =3D=3D VexAllocModeTEMP) {
|