Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.