[gmx-developers] How to set up a Gromacs development/debugging environment?

David van der Spoel spoel at xray.bmc.uu.se
Thu Nov 8 21:24:09 CET 2001


On Thu, 8 Nov 2001, Oliver Beckstein wrote:

>I compiled it within src/kernel with
>
>    $ make CFLAGS="-g -Wall -Wno-unused" CPPFLAGS="-DDEBUG" x2top
Did you do a make clean first?
Otherwise you will only compile the main routine.

>Now I am wondering how the Gromacs developers themselves are debugging
>the code, especially within a libtoolised environment.
>
>If anyone cares to enligthen me my debugging efforts my bear more
>fruit (and of course I am happy to share any patches if I manage to
>fix my problem).
What is exactly the problem debugging? It seems like you try to debug
something that has no symbol table, despite the -g. Are you gdb-ing the
right thing?

I usually do something like 
make CFLAGS=-g program
gdb program

Groeten, David.
________________________________________________________________________
Dr. David van der Spoel, 	Biomedical center, Dept. of Biochemistry
Husargatan 3, Box 576,  	75123 Uppsala, Sweden
phone:	46 18 471 4205		fax: 46 18 511 755
spoel at xray.bmc.uu.se	spoel at gromacs.org   http://zorn.bmc.uu.se/~spoel
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++





More information about the gromacs.org_gmx-developers mailing list