|
From: <sv...@va...> - 2005-08-24 19:55:58
|
Author: njn
Date: 2005-08-24 20:55:51 +0100 (Wed, 24 Aug 2005)
New Revision: 4491
Log:
add comment
Modified:
trunk/memcheck/mac_replace_strmem.c
Modified: trunk/memcheck/mac_replace_strmem.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/memcheck/mac_replace_strmem.c 2005-08-24 19:50:39 UTC (rev 4490=
)
+++ trunk/memcheck/mac_replace_strmem.c 2005-08-24 19:55:51 UTC (rev 4491=
)
@@ -227,6 +227,10 @@
STRNLEN(m_libc_so_6, strnlen)
=20
=20
+// Note that this replacement often doesn't get used because gcc inlines
+// calls to strlen() with its own built-in version. This can be very
+// confusing if you aren't expecting it. Other small functions in this =
file
+// may also be inline by gcc.
#define STRLEN(soname, fnname) \
SizeT VG_REPLACE_FUNCTION(soname,fnname)( const char* str ); \
SizeT VG_REPLACE_FUNCTION(soname,fnname)( const char* str ) \
|