Reinstate Addrcheck. Some of the tests fail -- some of the leak ones
because the added VG_(find_root_memory)() is just a stub. And there's a
problem with overlap checking that I haven't worked out yet. Still it's a
start. The commit also brings Memcheck back into the build process,
although mc_main.c is entirely commented out at the moment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3352 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/addrcheck/ac_main.c b/addrcheck/ac_main.c
index a911741..05a3b5c 100644
--- a/addrcheck/ac_main.c
+++ b/addrcheck/ac_main.c
@@ -571,7 +571,7 @@
Char* s, Addr base, SizeT size, Bool isWrite )
{
Bool ok;
- Addr bad_addr;
+ Addr bad_addr = 0; // Initialise to shut gcc up
VGP_PUSHCC(VgpCheckMem);
@@ -624,7 +624,7 @@
Char* s, Addr str )
{
Bool ok = True;
- Addr bad_addr;
+ Addr bad_addr = 0; // Initialise to shut gcc up
VGP_PUSHCC(VgpCheckMem);