Re: gdb/633: fully qualified pathnames in solib_map_sections() and remote debugging

Jorma Laaksonen
2002-08-12T11:18:25Z

Daniel Jacobowitz <drow@mvista.com> writes:

> > > Global variable SOLIB_ABSOLUTE_PREFIX is used as a prefix directory
> > > to search for shared libraries if they have an absolute path.
> > >
> > > Global variable SOLIB_SEARCH_PATH is used as a prefix directory
> > > (or set of directories, as in LD_LIBRARY_PATH) to search for all
> > > shared libraries if not found in SOLIB_ABSOLUTE_PREFIX.
> > >
> > > Search order:
> > > * If path is absolute, look in SOLIB_ABSOLUTE_PREFIX.
> > > * If path is absolute or relative, look for it literally (unmodified).
> > > * Look in SOLIB_SEARCH_PATH.
> > > * Look in inferior's $PATH.
> > > * Look in inferior's $LD_LIBRARY_PATH.
> > >
> > ...

Thank you very much for giving thoughs to this issue. I have two additional
points to add:

1) It would be most useful if gdb could check that the remote and local
solibs are equal, eg. that their versions, checksums or other identifiers
or the memory mapping locations such as reported by ldd are the same.
Otherwise, the host cannot know what really is going on in the target.

2) The texinfo documentation should be updated to include these vaariables.
In the first place, I was reading info pages and therefore concluded
that the problem had not been addressed before. Only after your reply
I checked "help show" within gdb.

Yours,

Jorma Laaksonen

--
Jorma Laaksonen email: jorma.laaksonen@hut.fi
Dr. of Science in Technology, Docent http://www.cis.hut.fi/jorma/
Laboratory of Computer and Information Science tel. +358-9-4513269
Helsinki University of Technology fax. +358-9-4513277
P.O.Box 5400, Fin-02015 HUT, Finland mob. +358-50-3058719