summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2011-03-14 13:23:24 +0100
committerLinus Nordberg <linus@nordu.net>2011-03-14 13:23:24 +0100
commite317a8db7aede1cc9918db51c06de469686c9fa8 (patch)
treee1493bd9f89cf4b23dceaf8063588fc84185c443
parent2e315fe5273c899bad4de5f82af9e704edb0bda5 (diff)
Add short blurb about bug hunting in HACKING.
-rw-r--r--lib/HACKING10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/HACKING b/lib/HACKING
index 2be4d67..6c502bd 100644
--- a/lib/HACKING
+++ b/lib/HACKING
@@ -47,3 +47,13 @@ This is on Ubuntu 10.10.
- [TLS] verification of CNAME
- [TLS] preshared key support
- [DTLS] support
+
+* Found a bug?
+If possible, please build the library with DEBUG defined
+(CFLAGS=-DDEBUG) and reproduce the problem. With DEBUG defined, lots
+of asserts are enabled which might give a hint about what's gone
+wrong.
+
+Running the library under gdb is another good idea. If you experience
+a crash, catching that in gdb and providing a backtrace is highly
+valuable for debugging.