This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Debugging with linked shared libraries ....


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
        							


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]