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

Signed-off-by: Masatake YAMATO <[email protected]>
---
 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


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to