How do I run a debugger on Subversion binaries without compiler inlining obfuscating the source?

0
Posted

How do I run a debugger on Subversion binaries without compiler inlining obfuscating the source?

0

By default, gcc will often optimize away private variables and functions, inlining the associated operations. This can complicate stepping through the code in a debugger. Work around this by turning off optimization during the make step on unix-y systems: subversion$ make EXTRA_CFLAGS=-O0 (That’s “dash ohh zero”.) Alternately, you can make this change more permanent by running configure as follows: subversion$ ./configure –enable-debug For a production install, remember to undo this operation before installing Subversion from source, by re-running make or configure without the extra flag.

Related Questions