[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] debugging with gdb

From: Jack Denman
Subject: Re: [Help-gsl] debugging with gdb
Date: Fri, 16 May 2008 08:24:45 -0700

On Thu, 2008-05-15 at 14:19 +0100, Joe Bloggs wrote:

> I am using gdb to debug my code, and I want to step into a gsl function to 
> see what's going on exactly (gsl_multimin_fdfminimizer_iterate).
> I have installed the debug symbols and development packages, but gdb can't 
> find the associated source code, and neither can I:
> gsl_multimin_fdfminimizer_iterate (s=0x80a8f70) at fdfminimizer.c:133
> 133     fdfminimizer.c: No such file or directory.
>         in fdfminimizer.c
> I am using Debian etch.
> Can anyone help?

I am a long time user of gdb.

You can't "install debug symbols". All of the source code must be
compiled with the gdb or -g option. You need a special makefile or
compile and link all of the source code at once including your top level
api. I am not sure if gdb can use libraries (of the gsl code)  so I
would stick strictly with the source code compiled and linked in the
same directory. I would strongly recommend not using shared libraries
with gdb but rather use static.

That should fix the problem once you have mastered the compile and link
without errors.

Jack Denman <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]