[bind10-dev] About the --enable-debug configure switch

Tomek Mrugalski tomasz at isc.org
Fri Dec 21 16:20:22 UTC 2012


On 19.12.2012 15:47, Mukund Sivaraman wrote:
> To my knowledge, currently the only part of BIND 10 that makes use
> of it is the threads code that enables some additional checking if 
> --enable-debug is used.
It is worth adding that to use this feature, one needs to include
config.h and use #ifdef ENABLE_DEBUG. There are some places in DHCP
code where this functionality could be helpful.

> Note that this has nothing to do with debuginfo for use in
> debuggers (-g compiler option). -g would be enabled by default when
> compiling BIND 10.
Would it make sense to make --enable-debug also change -O2 into -O0?
The code compiled with -O2 is often aggressively optimized and it's
often difficult to track it in debugger.

Tomek



More information about the bind10-dev mailing list