Commit 9a246340 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Merge pull request #212 from lyh-kernel/use_latest_valgrind

[use_latest_valgrind] Use valgrind-3.10.0
parents 4c7b796a aced7fa3
...@@ -208,11 +208,11 @@ To install: ...@@ -208,11 +208,11 @@ To install:
``` ```
cd ~/pyston_deps cd ~/pyston_deps
wget http://valgrind.org/downloads/valgrind-3.9.0.tar.bz2 wget http://valgrind.org/downloads/valgrind-3.10.0.tar.bz2
tar xvf valgrind-3.9.0.tar.bz2 tar xvf valgrind-3.10.0.tar.bz2
mkdir valgrind-3.9.0-install mkdir valgrind-3.10.0-install
cd valgrind-3.9.0 cd valgrind-3.10.0
./configure --prefix=$HOME/pyston_deps/valgrind-3.9.0-install ./configure --prefix=$HOME/pyston_deps/valgrind-3.10.0-install
make -j4 make -j4
make install make install
sudo apt-get install libc6-dbg sudo apt-get install libc6-dbg
......
...@@ -143,8 +143,8 @@ ifeq ($(ENABLE_VALGRIND),0) ...@@ -143,8 +143,8 @@ ifeq ($(ENABLE_VALGRIND),0)
COMMON_CXXFLAGS += -DNVALGRIND COMMON_CXXFLAGS += -DNVALGRIND
VALGRIND := false VALGRIND := false
else else
COMMON_CXXFLAGS += -I$(DEPS_DIR)/valgrind-3.9.0/include COMMON_CXXFLAGS += -I$(DEPS_DIR)/valgrind-3.10.0/include
VALGRIND := VALGRIND_LIB=$(DEPS_DIR)/valgrind-3.9.0-install/lib/valgrind $(DEPS_DIR)/valgrind-3.9.0-install/bin/valgrind VALGRIND := VALGRIND_LIB=$(DEPS_DIR)/valgrind-3.10.0-install/lib/valgrind $(DEPS_DIR)/valgrind-3.10.0-install/bin/valgrind
endif endif
COMMON_CXXFLAGS += -DGITREV=$(shell git rev-parse HEAD | head -c 12) -DLLVMREV=$(LLVM_REVISION) COMMON_CXXFLAGS += -DGITREV=$(shell git rev-parse HEAD | head -c 12) -DLLVMREV=$(LLVM_REVISION)
...@@ -776,7 +776,7 @@ memcheck$1_%: %.py pyston$1 $$(RUN_DEPS) ...@@ -776,7 +776,7 @@ memcheck$1_%: %.py pyston$1 $$(RUN_DEPS)
$$(call make_search,memcheck$1_%) $$(call make_search,memcheck$1_%)
memcheck_gdb$1_%: %.py pyston$1 $$(RUN_DEPS) memcheck_gdb$1_%: %.py pyston$1 $$(RUN_DEPS)
set +e; $$(VALGRIND) -v -v -v -v -v --tool=memcheck --leak-check=no --track-origins=yes --vgdb=yes --vgdb-error=0 ./pyston$1 $$(ARGS) $$< & export PID=$$$$! ; \ set +e; $$(VALGRIND) -v -v -v -v -v --tool=memcheck --leak-check=no --track-origins=yes --vgdb=yes --vgdb-error=0 ./pyston$1 $$(ARGS) $$< & export PID=$$$$! ; \
$$(GDB) --ex "set confirm off" --ex "target remote | $$(DEPS_DIR)/valgrind-3.9.0-install/bin/vgdb" --ex "continue" --ex "bt" ./pyston$1; kill -9 $$$$PID $$(GDB) --ex "set confirm off" --ex "target remote | $$(DEPS_DIR)/valgrind-3.10.0-install/bin/vgdb" --ex "continue" --ex "bt" ./pyston$1; kill -9 $$$$PID
$$(call make_search,memcheck_gdb$1_%) $$(call make_search,memcheck_gdb$1_%)
memleaks$1_%: %.py pyston$1 $$(RUN_DEPS) memleaks$1_%: %.py pyston$1 $$(RUN_DEPS)
$$(VALGRIND) --tool=memcheck --leak-check=full --leak-resolution=low --show-reachable=yes ./pyston$1 $$(ARGS) $$< $$(VALGRIND) --tool=memcheck --leak-check=full --leak-resolution=low --show-reachable=yes ./pyston$1 $$(ARGS) $$<
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment