[gmx-developers] problem with debugging
David van der Spoel
spoel at xray.bmc.uu.se
Tue Nov 26 15:40:34 CET 2002
On Tue, 2002-11-26 at 15:08, Olesya Ivanova wrote:
> Dear gromacs developers!
> I wrote my own analyzing program using your template
> and want to debug it with DDD(I tried kdevelop too).
> This is a part of my source code:
> #include confio.h
> void some_function(char* conf_fn)
> {int natom;
> get_stx_coordnum(conf_fn,&natom);
> printf("%d",natom);
> }
> after executing of get_stx_coordnum debugger displays
> strange value of natom,which differs from that one, i
> saw as a result of printf. It seems that the function
> executed correctly, but debugger didn't "see" that!
> And this mistake appears after calling of any gromacs
> library function!!!!
> What is the reason of this problem?
> Can you advise me some other debuggers (probably
> which you are using for Linux) or I'm doing something
> wrong?
>
I alwayas use gdb. Did you compile with CFLAGS=-g?
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> _______________________________________________
> gmx-developers mailing list
> gmx-developers at gromacs.org
> http://www.gromacs.org/mailman/listinfo/gmx-developers
> Please don't post (un)subscribe requests to the list. Use the
> www interface or send it to gmx-developers-request at gromacs.org.
>
--
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://xray.bmc.uu.se/~spoel
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
More information about the gromacs.org_gmx-developers
mailing list