[GRASS5] Re: getting gdb to work
neteler at itc.it
Tue Sep 23 05:38:31 EDT 2003
On Tue, Sep 23, 2003 at 07:40:31PM +1200, Hamish wrote:
> > > also in anyone can help, I'm having problems getting gdb to work
> > > with GRASS.
> > 1. Don't use LDFLAGS="-s" if you want to debug the binary; "-s" strips
> > the debugging information.
> > 2. Don't use -O if you want to be able to step through function
> > bodies. When optimisation is enabled, the compiler will re-order
> > statements and re-arrange expressions, resulting in object code which
> > barely resembles the source code.
Added to INSTALL file.
> > Run the actual command in etc/bin/cmd or etc/bin/inter not the wrapper
> > from the grass command prompt.
> Thanks a lot for the info, now it works fine.
> For the archive--
> gdb is the GNU (interactive) debugger.
> GUI frontends include: ddd, xxgdb, cgdb, kdbg
> quick reference guides:
I can highly recommend the graphical debugger 'ddd':
You can select a variable with right mouse button and display it etc.
More information about the grass-dev