This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Debugging with linked shared libraries ....
- From: Roberto Brunelli <brunelli at itc dot it>
- To: gdb at sources dot redhat dot com
- Date: Tue, 25 Oct 2005 15:46:48 +0200
- Subject: Debugging with linked shared libraries ....
- References: <1130247165.27815.ezmlm@sources.redhat.com>
I apologize if this is not the correct place for posting.
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'
> error while loading shared libraries: librandomLib.so: cannot open
> shared object file: No such file or directory
4. If I make the program generate a core and perform
gdb myProg core.xxxx
I read
> Reading symbols from
> >/hardmnt/..../randomLib/librandomLib.so...done.
and I am actually able to list the functions within the library and
to access data within the code of myProg.
What am I doing wrong??
Thanx a lot for any help!
--
<r/>
| Roberto Brunelli, Research Scientist
| TeV Group - ITC-irst
|
| 'You cannot manipulate a marionette with only one string'
| from Chapterhouse Dune, by F. Herbert