Big clean-up: changed the core/tool interface to be mediated entirely
through the VG_(tdict) function dictionary, rather than using TL_(foo)
functions.
This facilitated the following changes:
- Removed the "TL_" prefix, which is no longer needed.
- Removed the auto-generated files vg_toolint.[ch], which were no longer
needed, which simplifies the build a great deal. Their (greatly
streamlined) contents went into core.h and vg_needs.h (and will soon
go into a new module defining the core/tool interface).
This also meant that tool.h.base reverted to tool.h (so no more
accidentally editing tool.h and not having the changes go into the
repo, hooray!) And gen_toolint.pl was removed. And toolfuncs.def was
removed.
- Removed VG_(missing_tool_func)(), no longer used.
- Bumped the core/tool interface major version number to 8. And I
killed the minor version number, which was never used. The layout
of the ToolInfo struct is such that this should not cause problems.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3644 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/memcheck/mac_shared.h b/memcheck/mac_shared.h
index 6d07e44..c541fc9 100644
--- a/memcheck/mac_shared.h
+++ b/memcheck/mac_shared.h
@@ -1,6 +1,6 @@
/*--------------------------------------------------------------------*/
-/*--- Declarations shared between MemCheck and AddrCheck. ---*/
+/*--- Declarations shared between Memcheck and Addrcheck. ---*/
/*--- mac_shared.h ---*/
/*--------------------------------------------------------------------*/
@@ -323,7 +323,7 @@
extern void MAC_(print_common_debug_usage) ( void );
/* We want a 16B redzone on heap blocks for Addrcheck and Memcheck */
-#define MALLOC_REDZONE_SZB 16
+#define MAC_MALLOC_REDZONE_SZB 16
/*------------------------------------------------------------*/
/*--- Variables ---*/
@@ -362,7 +362,14 @@
extern void MAC_(clear_MAC_Error) ( MAC_Error* err_extra );
-extern Bool MAC_(shared_recognised_suppression) ( Char* name, Supp* su );
+extern Bool MAC_(eq_Error) ( VgRes res, Error* e1, Error* e2 );
+extern UInt MAC_(update_extra)( Error* err );
+extern Bool MAC_(read_extra_suppression_info) ( Int fd, Char* buf, Int nBuf, Supp *su );
+extern Bool MAC_(error_matches_suppression)(Error* err, Supp* su);
+extern Char* MAC_(get_error_name) ( Error* err );
+extern void MAC_(print_extra_suppression_info) ( Error* err );
+
+extern Bool MAC_(shared_recognised_suppression) ( Char* name, Supp* su );
extern void* MAC_(new_block) ( ThreadId tid,
Addr p, SizeT size, SizeT align, UInt rzB,
@@ -430,6 +437,15 @@
extern void MAC_(die_mem_stack) ( Addr a, SizeT len);
extern void MAC_(new_mem_stack) ( Addr a, SizeT len);
+extern void* MAC_(malloc) ( ThreadId tid, SizeT n );
+extern void* MAC_(__builtin_new) ( ThreadId tid, SizeT n );
+extern void* MAC_(__builtin_vec_new) ( ThreadId tid, SizeT n );
+extern void* MAC_(memalign) ( ThreadId tid, SizeT align, SizeT n );
+extern void* MAC_(calloc) ( ThreadId tid, SizeT nmemb, SizeT size1 );
+extern void MAC_(free) ( ThreadId tid, void* p );
+extern void MAC_(__builtin_delete) ( ThreadId tid, void* p );
+extern void MAC_(__builtin_vec_delete) ( ThreadId tid, void* p );
+extern void* MAC_(realloc) ( ThreadId tid, void* p, SizeT new_size );
/*------------------------------------------------------------*/
/*--- Stack pointer adjustment ---*/