Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* solib-search-path not honoured after program start
@ 2003-02-19 19:04 Kris Warkentin
  2003-02-19 19:44 ` Kevin Buettner
  0 siblings, 1 reply; 6+ messages in thread
From: Kris Warkentin @ 2003-02-19 19:04 UTC (permalink / raw)
  To: gdb

Here's the problem:

Run a program under gdb and break at main.  If gdb can't find all the shared
libs, it complains about it like so:

Error while mapping shared library sections:
libtestLib_g.so.1: No such file or directory.

So, at main, if I 'info shared', I see something like this:

From        To                  Syms Read   Shared Object Library
                                            No          libtestLib_g.so.1
0xb0312504  0xb0349b06  Yes         /t/x86/lib/libc.so.2

If I now go and set solib-search-path such that it can find
libtestLib_g.so.1, and type 'shared', it still doesn't find it.

If I restart the program, there is no problem.  For whatever reason, after
the process has started, gdb never tries to find the shlibs again.

I spent some time tracing around but didn't see exactly where this might be
fixable.  Looks like solib_open does the searching but isn't called later
on.  The shared command calls solib_add which doesn't seem to do any
searching on solib_search_path.

Can/should this be fixed?

cheers,

Kris


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-02-20 18:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-19 19:04 solib-search-path not honoured after program start Kris Warkentin
2003-02-19 19:44 ` Kevin Buettner
2003-02-19 19:58   ` Kris Warkentin
2003-02-19 21:11     ` Kevin Buettner
2003-02-19 21:31       ` Kris Warkentin
2003-02-20 18:27       ` Kevin Buettner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox