If you look at the Configure script you will see different debug options
that the developers have setup.  Search the Configure file for lines
with 'debug-' in them.  You can adjust the Configure script to setup
your own as well, just follow the pattern.  There are quite a few
different configs available.  I've listed a couple below along with one
I setup for my testing recently.
 
./Configure debug-linux-elf
make clean && make
 
Example configs
 
"debug-linux-elf","gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -march=i486
-Wall::-D_REENTRANT::-lefence -ldl:BN_LLONG ${x86_gcc_des}
${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MA
JOR).\$(SHLIB_MINOR)",
 
"debug-linux-elf-noefence","gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG
-DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DL_ENDIAN -DTERMIO -g -march=i486
-Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des}
${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MA
JOR).\$(SHLIB_MINOR)",
 
Here's a debug config I've used, which allows me to use gdb but doesn't
spit out a ton of excess information I didn't need.
 
"debug-simplified","gcc:-DL_ENDIAN -DTERMIO -g -march=i686
-Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des}
${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MA
JOR).\$(SHLIB_MINOR)",
 
--Will



________________________________

        Dr. Steve:
        
        How do I enable debug? I want to make sure I have it set right
as it takes a while to rebuild.
        

Reply via email to