|
From: Дмитрий Д. <di...@gm...> - 2011-04-29 10:20:55
|
>From exp-ptrcheck/h_intercepts.c
/* The following intercepts are copied verbatim from
memcheck/mc_replace_strmem.c. If you copy more in, please keep
them in the same order as in mc_replace_strmem.c. */
Trivial change in Makefile.am allows to use all intercepts and not to
duplicate code.
So, why not use one file instead of two?
Dmitry
valgrind$ svn diff exp-ptrcheck/Makefile.am
Index: exp-ptrcheck/Makefile.am
===================================================================
--- exp-ptrcheck/Makefile.am (revision 11718)
+++ exp-ptrcheck/Makefile.am (working copy)
@@ -79,7 +79,7 @@
noinst_DSYMS = $(noinst_PROGRAMS)
endif
-VGPRELOAD_EXP_PTRCHECK_SOURCES_COMMON = h_intercepts.c
+VGPRELOAD_EXP_PTRCHECK_SOURCES_COMMON = ../memcheck/mc_replace_strmem.c
vgpreload_exp_ptrcheck_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_SOURCES = \
$(VGPRELOAD_EXP_PTRCHECK_SOURCES_COMMON)
|