From: Bart Van Assche Date: Wed, 26 Mar 2008 17:39:52 +0000 (+0000) Subject: Added support for --trace-malloc. X-Git-Tag: svn/VALGRIND_3_4_0~794 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=32c61dd33a9e50ea28f22672541aeb67f53c6703;p=thirdparty%2Fvalgrind.git Added support for --trace-malloc. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7792 --- diff --git a/exp-drd/drd_main.c b/exp-drd/drd_main.c index fb5fa5bfa9..4a0734bc85 100644 --- a/exp-drd/drd_main.c +++ b/exp-drd/drd_main.c @@ -48,8 +48,10 @@ #include "pub_tool_libcproc.h" #include "pub_tool_machine.h" #include "pub_tool_options.h" // command line options +#include "pub_tool_replacemalloc.h" #include "pub_tool_threadstate.h" // VG_(get_running_tid)() #include "pub_tool_tooliface.h" +#include "pub_tool_replacemalloc.h" // Function declarations. @@ -102,7 +104,7 @@ static Bool drd_process_cmd_line_option(Char* arg) else VG_BOOL_CLO(arg, "--trace-suppression", trace_suppression) else VG_STR_CLO (arg, "--trace-address", trace_address) else - return False; + return VG_(replacement_malloc_process_cmd_line_option)(arg); if (segment_merging != -1) thread_set_segment_merging(segment_merging);