[PATCH v4 07/37] unwind: introduce unwind.c own debug macro

Masatake YAMATO yamato at redhat.com
Wed Apr 16 06:33:05 UTC 2014


Introduce unwind.c own debug macro to be utilized
in debugging the code of cache management.

Signed-off-by: Masatake YAMATO <yamato at redhat.com>
---
 unwind.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/unwind.c b/unwind.c
index ecb7aa0..bd30fc2 100644
--- a/unwind.c
+++ b/unwind.c
@@ -28,6 +28,8 @@
 #include <limits.h>
 #include <libunwind-ptrace.h>
 
+#define DPRINTF(F, A, ...) if (debug_flag) fprintf(stderr, " [unwind(" A ")] " F "\n", __VA_ARGS__);
+
 /*
  * Кeep a sorted array of cache entries,
  * so that we can binary search through it.
-- 
1.9.0





More information about the Strace-devel mailing list