summaryrefslogtreecommitdiff
path: root/debug.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2018-02-17 19:29:51 +0800
committerMatt Johnston <matt@ucc.asn.au>2018-02-17 19:29:51 +0800
commit104e39e9caf447cb416a6d83ea7eedd4481ce4c3 (patch)
treeb8b33aaee9f7336e592da7a916ee05bae3412c22 /debug.h
parent2b551518f8625f87a22ea1fde40e3c7d841bf9d0 (diff)
parent769be133237df6d9a4028645e7e9924be8544c8f (diff)
downloaddropbear-104e39e9caf447cb416a6d83ea7eedd4481ce4c3.tar.gz
merge from main
Diffstat (limited to 'debug.h')
-rw-r--r--debug.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/debug.h b/debug.h
index c2efda7..8659b5c 100644
--- a/debug.h
+++ b/debug.h
@@ -39,7 +39,9 @@
/*#define CHECKCLEARTOWRITE() assert(ses.writepayload->len == 0 && \
ses.writepayload->pos == 0)*/
+#ifndef CHECKCLEARTOWRITE
#define CHECKCLEARTOWRITE()
+#endif
/* Define this, compile with -pg and set GMON_OUT_PREFIX=gmon to get gmon
* output when Dropbear forks. This will allow it gprof to be used.
@@ -54,6 +56,7 @@
/* you don't need to touch this block */
#if DEBUG_TRACE
+extern int debug_trace;
#define TRACE(X) dropbear_trace X;
#define TRACE2(X) dropbear_trace2 X;
#else /*DEBUG_TRACE*/