|
From: <sv...@va...> - 2005-08-14 18:24:45
|
Author: njn
Date: 2005-08-14 19:24:44 +0100 (Sun, 14 Aug 2005)
New Revision: 4408
Log:
Remove ancient backwards compatibility code which is no longer needed, si=
nce
backwards compatibility was broken in various other ways by 3.0.0.
Modified:
trunk/memcheck/mac_shared.c
trunk/memcheck/memcheck.h
Modified: trunk/memcheck/mac_shared.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_shared.c 2005-08-14 17:42:35 UTC (rev 4407)
+++ trunk/memcheck/mac_shared.c 2005-08-14 18:24:44 UTC (rev 4408)
@@ -965,13 +965,6 @@
=20
Bool MAC_(handle_common_client_requests)(ThreadId tid, UWord* arg, UWord=
* ret )
{
- Char* err =3D=20
- "The client requests VALGRIND_MALLOCLIKE_BLOCK and\n"
- " VALGRIND_FREELIKE_BLOCK have moved. Please recompile your\n"
- " program to incorporate the updates in the Valgrind header file=
s.\n"
- " You shouldn't need to change the text of your program at all.\=
n"
- " Everything should then work as before. Sorry for the bother.\=
n";
- =20
switch (arg[0]) {
case VG_USERREQ__COUNT_LEAKS: { /* count leaked bytes */
UWord** argp =3D (UWord**)arg;
@@ -987,10 +980,6 @@
*ret =3D 0;
return True;
}
- case VG_USERREQ__MALLOCLIKE_BLOCK__OLD_DO_NOT_USE:
- case VG_USERREQ__FREELIKE_BLOCK__OLD_DO_NOT_USE:
- VG_(tool_panic)(err);
-
case VG_USERREQ__MALLOCLIKE_BLOCK: {
Addr p =3D (Addr)arg[1];
SizeT sizeB =3D arg[2];
Modified: trunk/memcheck/memcheck.h
=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/memcheck.h 2005-08-14 17:42:35 UTC (rev 4407)
+++ trunk/memcheck/memcheck.h 2005-08-14 18:24:44 UTC (rev 4408)
@@ -81,13 +81,6 @@
VG_USERREQ__DO_LEAK_CHECK,
VG_USERREQ__COUNT_LEAKS,
=20
- /* These two have been moved into core, because they are useful fo=
r
- any tool that tracks heap blocks. Hence the suffix. But they'=
re
- still here for backwards compatibility, although Valgrind will
- abort with an explanatory message if you use them. */
- VG_USERREQ__MALLOCLIKE_BLOCK__OLD_DO_NOT_USE,
- VG_USERREQ__FREELIKE_BLOCK__OLD_DO_NOT_USE,
-
VG_USERREQ__GET_VBITS,
VG_USERREQ__SET_VBITS,
=20
@@ -218,22 +211,6 @@
}
=20
=20
-/* These two have been moved to valgrind.h; still here so that a warnin=
g can
- be printed out for any programs using the old ones. */
-#define VALGRIND_MALLOCLIKE_BLOCK__OLD_DO_NOT_USE(addr, sizeB, rzB, is_z=
eroed)\
- {unsigned int _qzz_res; \
- VALGRIND_MAGIC_SEQUENCE(_qzz_res, 0, \
- VG_USERREQ__MALLOCLIKE_BLOCK, \
- addr, sizeB, rzB, is_zeroed); \
- }
-#define VALGRIND_FREELIKE_BLOCK__OLD_DO_NOT_USE(addr, rzB) \
- {unsigned int _qzz_res; \
- VALGRIND_MAGIC_SEQUENCE(_qzz_res, 0, \
- VG_USERREQ__FREELIKE_BLOCK, \
- addr, rzB, 0, 0); \
- }
-
-
/* Get in zzvbits the validity data for the zznbytes starting at
zzsrc. Return values:
0 if not running on valgrind
|