2009-12-02 22:26:09 +01:00
|
|
|
Index: memcheck/memcheck.h
|
|
|
|
===================================================================
|
|
|
|
--- memcheck/memcheck.h.orig
|
|
|
|
+++ memcheck/memcheck.h
|
|
|
|
@@ -134,6 +134,18 @@ typedef
|
2007-12-17 12:08:48 +01:00
|
|
|
_qzz_res; \
|
|
|
|
}))
|
|
|
|
|
|
|
|
+/* This is the old name for VALGRIND_MAKE_MEM_NOACCESS. Deprecated. */
|
|
|
|
+#define VALGRIND_MAKE_NOACCESS(_qzz_addr,_qzz_len) \
|
|
|
|
+ VALGRIND_MAKE_MEM_NOACCESS(_qzz_addr,_qzz_len)
|
|
|
|
+
|
|
|
|
+/* This is the old name for VALGRIND_MAKE_MEM_UNDEFINED. Deprecated. */
|
|
|
|
+#define VALGRIND_MAKE_WRITABLE(_qzz_addr,_qzz_len) \
|
|
|
|
+ VALGRIND_MAKE_MEM_UNDEFINED(_qzz_addr,_qzz_len)
|
|
|
|
+
|
|
|
|
+/* This is the old name for VALGRIND_MAKE_MEM_DEFINED. Deprecated. */
|
|
|
|
+#define VALGRIND_MAKE_READABLE(_qzz_addr,_qzz_len) \
|
|
|
|
+ VALGRIND_MAKE_MEM_DEFINED(_qzz_addr,_qzz_len)
|
|
|
|
+
|
|
|
|
/* Similar to VALGRIND_MAKE_MEM_DEFINED except that addressability is
|
|
|
|
not altered: bytes which are addressable are marked as defined,
|
|
|
|
but those which are not addressable are left unchanged. */
|
2009-12-02 22:26:09 +01:00
|
|
|
@@ -205,6 +217,18 @@ typedef
|
2007-12-17 12:08:48 +01:00
|
|
|
(volatile unsigned char *)&(__lvalue), \
|
2009-12-02 22:26:09 +01:00
|
|
|
(unsigned long)(sizeof (__lvalue)))
|
2007-12-17 12:08:48 +01:00
|
|
|
|
|
|
|
+/* This is the old name for VALGRIND_CHECK_MEM_IS_ADDRESSABLE. Deprecated. */
|
|
|
|
+#define VALGRIND_CHECK_WRITABLE(_qzz_addr,_qzz_len) \
|
|
|
|
+ VALGRIND_CHECK_MEM_IS_ADDRESSABLE(_qzz_addr,_qzz_len)
|
|
|
|
+
|
|
|
|
+/* This is the old name for VALGRIND_CHECK_MEM_IS_DEFINED. Deprecated. */
|
|
|
|
+#define VALGRIND_CHECK_READABLE(_qzz_addr,_qzz_len) \
|
|
|
|
+ VALGRIND_CHECK_MEM_IS_DEFINED(_qzz_addr,_qzz_len)
|
|
|
|
+
|
|
|
|
+/* This is the old name for VALGRIND_CHECK_VALUE_IS_DEFINED. Deprecated. */
|
|
|
|
+#define VALGRIND_CHECK_DEFINED(__lvalue) \
|
|
|
|
+ VALGRIND_CHECK_VALUE_IS_DEFINED(__lvalue)
|
|
|
|
+
|
|
|
|
|
2009-12-02 22:26:09 +01:00
|
|
|
/* Do a full memory leak check (like --leak-check=full) mid-execution. */
|
2007-12-17 12:08:48 +01:00
|
|
|
#define VALGRIND_DO_LEAK_CHECK \
|