|
From: <sv...@va...> - 2006-10-18 21:50:33
|
Author: njn
Date: 2006-10-18 22:50:26 +0100 (Wed, 18 Oct 2006)
New Revision: 6320
Log:
Move VG_BUGS_TO to pub_tool_basics.h so that Nulgrind need not import
pub_tool_libcassert.h.
Modified:
trunk/Makefile.am
trunk/configure.in
trunk/include/pub_tool_tooliface.h
trunk/include/valgrind.h
Modified: trunk/Makefile.am
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/Makefile.am 2006-10-18 12:41:55 UTC (rev 6319)
+++ trunk/Makefile.am 2006-10-18 21:50:26 UTC (rev 6320)
@@ -8,7 +8,8 @@
callgrind \
massif \
lackey \
- none
+ none \
+ memtrace
=20
# Temporary: we want to compile Helgrind, but not regtest it.
# Put docs last because building the HTML is slow and we want to get
Modified: trunk/configure.in
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/configure.in 2006-10-18 12:41:55 UTC (rev 6319)
+++ trunk/configure.in 2006-10-18 21:50:26 UTC (rev 6320)
@@ -931,6 +931,9 @@
none/tests/ppc64/Makefile
none/tests/x86/Makefile
none/docs/Makefile
+ memtrace/Makefile
+ memtrace/tests/Makefile
+ memtrace/docs/Makefile
)=20
=20
cat<<EOF
Modified: trunk/include/pub_tool_tooliface.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/include/pub_tool_tooliface.h 2006-10-18 12:41:55 UTC (rev 6319)
+++ trunk/include/pub_tool_tooliface.h 2006-10-18 21:50:26 UTC (rev 6320)
@@ -32,7 +32,7 @@
#define __PUB_TOOL_TOOLIFACE_H
=20
#include "pub_tool_errormgr.h" // for Error, Supp
-#include "libvex.h" // for VexGuestLayout
+#include "libvex.h" // for all Vex stuff
=20
/* ------------------------------------------------------------------ */
/* The interface version */
Modified: trunk/include/valgrind.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/include/valgrind.h 2006-10-18 12:41:55 UTC (rev 6319)
+++ trunk/include/valgrind.h 2006-10-18 21:50:26 UTC (rev 6320)
@@ -3715,15 +3715,15 @@
for calloc(). Put it immediately after the point where a block is
allocated.=20
=20
- If you're allocating memory via superblocks, and then handing out sma=
ll
- chunks of each superblock, if you don't have redzones on your small
- blocks, it's worth marking the superblock with VALGRIND_MAKE_MEM_NOAC=
CESS
- when it's created, so that block overruns are detected. But if you c=
an
- put redzones on, it's probably better to not do this, so that message=
s
- for small overruns are described in terms of the small block rather t=
han
- the superblock (but if you have a big overrun that skips over a redzo=
ne,
- you could miss an error this way). See memcheck/tests/custom_alloc.c
- for an example.
+ If you're using Memcheck: If you're allocating memory via superblocks=
,
+ and then handing out small chunks of each superblock, if you don't ha=
ve
+ redzones on your small blocks, it's worth marking the superblock with
+ VALGRIND_MAKE_MEM_NOACCESS when it's created, so that block overruns =
are
+ detected. But if you can put redzones on, it's probably better to no=
t do
+ this, so that messages for small overruns are described in terms of t=
he
+ small block rather than the superblock (but if you have a big overrun
+ that skips over a redzone, you could miss an error this way). See
+ memcheck/tests/custom_alloc.c for an example.
=20
WARNING: if your allocator uses malloc() or 'new' to allocate
superblocks, rather than mmap() or brk(), this will not work properly=
--
|