Re: [Hampshire] Help with gdb...

Top Page

Reply to this message
Author: James Courtier-Dutton
Date:  
To: lug, Hampshire LUG Discussion List
CC: 
Subject: Re: [Hampshire] Help with gdb...
On 05/03/2008, Vic <lug@???> wrote:
> Hi All.
>
> I'm trying to debug some code. It loads a shared library - for which the
> -dev package is installed on the machine I'm using.
>
> Trouble is, my initial binary has no debugging symbols - and so far, I've
> been unable to get gdb to recognise any symbols from the shared library
> (or anything from that package).
>
> Anyone know what I'm doing wrong?
>
> Thanks!
>
> Vic.
>


Recompile your program with debugging symbols.
With gcc, that would be the -g option. It might also be sensible to
compile it with -O0 so that gdb can point to the exact line of source
code that caused the problem.

James