Indeed it does, apologies for not doing the entire groundwork. But what it also does is that it adds -O2 by default for gcc even when --enable-debug is specified. gdb is not able to navigate the stack traces properly with this optimization in place. Especially tracing of static functions becomes difficult. Has this issue been faced by anybody else? If so can try out a patch to avoid using O2 with enable-debug.
> Hi, > > configure with --enable-debug does not seem to add "-g" to CFLAGS while > compiling with gcc. Guess we will need to change configure.in as below: