compiling for debug on Linux

2013-09-03 Thread Ken Goldman
I know this is a FAQ, but the answers I found all included the response "that didn't work". openssl 1.0.1c on Linux: How do I compile and link so the debugger can step into the openssl code? Are there definitive instructions anywhere, or does everyone use trial and error? I'm using a loca

Re: Compiling for debug

2012-08-20 Thread Dr. Stephen Henson
On Mon, Aug 20, 2012, Ken Goldman wrote: > I'm trying to compile openssl for: > > Linux, 32-bit on a 64-bit machine, shared libraries, and debug. > > The closest I found was: > > > ./Configure linux-elf -m32 -shared -g > > but this still does -O3, and the optimizer doesn't work well with > the

Re: Compiling for debug

2012-08-20 Thread Jeffrey Walton
On Mon, Aug 20, 2012 at 4:54 PM, Ken Goldman wrote: > I'm trying to compile openssl for: > > Linux, 32-bit on a 64-bit machine, shared libraries, and debug. > > The closest I found was: > > > ./Configure linux-elf -m32 -shared -g > > but this still does -O3, and the optimizer doesn't work well wi

Compiling for debug

2012-08-20 Thread Ken Goldman
I'm trying to compile openssl for: Linux, 32-bit on a 64-bit machine, shared libraries, and debug. The closest I found was: > ./Configure linux-elf -m32 -shared -g but this still does -O3, and the optimizer doesn't work well with the source level debugger. Any clues for changing -O3 to -O0?