This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
RE: Debugging with linked shared libraries ....
- From: Kris Warkentin <KEWarken at qnx dot com>
- To: 'Christophe LYON' <christophe dot lyon at st dot com>, Roberto Brunelli <brunelli at itc dot it>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 25 Oct 2005 10:46:11 -0400
- Subject: RE: Debugging with linked shared libraries ....
Best to 'set solib-search-path <path to my stuff>' in gdb. Try putting it
in your .gdbinit.
cheers,
Kris
> -----Original Message-----
> From: gdb-owner@sources.redhat.com
> [mailto:gdb-owner@sources.redhat.com] On Behalf Of Christophe LYON
> Sent: Tuesday, October 25, 2005 9:55 AM
> To: Roberto Brunelli
> Cc: gdb@sources.redhat.com
> Subject: Re: Debugging with linked shared libraries ....
>
>
> > I would like to debug a c++ program that links shared libraries
> > (files) in non standard places:
> >
> > 1. I set the LD_LIBRARY_PATH so that the program runs fine from my
> > (c)sh
> >
> > 2. I execute
> >
> > gdb myProg
> >
> > 3. but when I 'run'
> >
>
> Presumably your .cshrc resets your LD_LIBRARY_PATH.
> 'run' starts a new shell, and thus sources your .cshrc.
>
> You have to set your LD_LIBRARY_PATH in your .cshrc
>
> Christophe.
>