comparison debug.h @ 109:2e9d1f29c50f

merge of 50be59810e462f9f44f55e421227d6aa0b31982b and 69b007796063cb5f042be7cca2d479e90db869c3
author Matt Johnston <matt@ucc.asn.au>
date Fri, 27 Aug 2004 14:39:01 +0000
parents d3eb1fa8484e
children 0cfba3034be5
comparison
equal deleted inserted replaced
108:10f4d3319780 109:2e9d1f29c50f
31 31
32 /* Work well for valgrind - don't clear environment, be nicer with signals 32 /* Work well for valgrind - don't clear environment, be nicer with signals
33 * etc. Don't use this normally, it might cause problems */ 33 * etc. Don't use this normally, it might cause problems */
34 /* #define DEBUG_VALGRIND */ 34 /* #define DEBUG_VALGRIND */
35 35
36 /* Define this to compile in trace debugging printf()s. You'll need to 36 /* Define this to compile in trace debugging printf()s.
37 * run programs with "-v" to turn this on. 37 * You'll need to run programs with "-v" to turn this on.
38 *
38 * Caution: Don't use this in an unfriendly environment (ie unfirewalled), 39 * Caution: Don't use this in an unfriendly environment (ie unfirewalled),
39 * since the printing may not sanitise strings etc. This will add a reasonable 40 * since the printing may not sanitise strings etc. This will add a reasonable
40 * amount to your executable size. */ 41 * amount to your executable size. */
41 #define DEBUG_TRACE 42 /* #define DEBUG_TRACE */
42 43
43 /* All functions writing to the cleartext payload buffer call 44 /* All functions writing to the cleartext payload buffer call
44 * CHECKCLEARTOWRITE() before writing. This is only really useful if you're 45 * CHECKCLEARTOWRITE() before writing. This is only really useful if you're
45 * attempting to track down a problem */ 46 * attempting to track down a problem */
46 #define CHECKCLEARTOWRITE() assert(ses.writepayload->len == 0 && \ 47 #define CHECKCLEARTOWRITE() assert(ses.writepayload->len == 0 && \
47 ses.writepayload->pos == 0) 48 ses.writepayload->pos == 0)
48 49
49 /* Define this, compile with -pg and set GMON_OUT_PREFIX=gmon to get gmon 50 /* Define this, compile with -pg and set GMON_OUT_PREFIX=gmon to get gmon
50 * output when Dropbear forks. This will allow it gprof to be used. 51 * output when Dropbear forks. This will allow it gprof to be used.
51 * It's useful to run dropbear -F, so you don't fork as much */ 52 * It's useful to run dropbear -F, so you don't fork as much */
53 /* (This is Linux specific) */
52 /*#define DEBUG_FORKGPROF*/ 54 /*#define DEBUG_FORKGPROF*/
53 55
54 /* A couple of flags, not usually useful, and mightn't do anything */ 56 /* A couple of flags, not usually useful, and mightn't do anything */
55 57
56 /*#define DEBUG_KEXHASH*/ 58 /*#define DEBUG_KEXHASH*/