[gmx-developers] problem with debugging

Oliver Beckstein oliver at bioch.ox.ac.uk
Tue Nov 26 16:46:38 CET 2002


On Tue, 26 Nov 2002, Marc Baaden wrote:

> 
> >>> David van der Spoel said:
>  >> I alwayas use gdb. Did you compile with CFLAGS=-g?
> .. if they are compiled with the -g flag :))

And I want to add: If they are compiled without optimisations, ie nothing
like -O2; if the compiler is allowed to optimise, a programme in the
debugger and the source code can differ dramatically (for example, some
pieces of the code simply disappear or are shifted around wildly or
variables cease to exist).

Oliver


-- 
Oliver Beckstein * oliver at bioch.ox.ac.uk
 http://indigo1.biop.ox.ac.uk/oliver/




More information about the gromacs.org_gmx-developers mailing list