This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.


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

Re: gdb-980122 behavior on linux with shared libraries


> 
> On Sun, Feb 01, 1998 at 12:24:31PM -0700, Marty Leisner wrote:
> > 
> > I have a tentative solution (which I don't fully understand
> > why its only showing up on elf).
> > 
> > Between 970507 and now, in solib.c the
> > 	flag solib_cleanup_queued
> > 	function  do_clear_solib
> > was added...
> 
> This code is required in order to clear out the link_map structures between 
> runs.  If this were not done, gdb would think the link_map entries from 
> the last run were still valid when they're not.
> 
> The code works fine for Solaris which is elf.  Is there any difference
> in how Linux shared objects behave?  Does linux follow the svr4 conventions
> for shared objects?
> 

It doesn't work at all on Solaris 2.5.1/Sparc. I got the same
result as on Linux. Pleae go back to my report on Solaris 2.5.1/Sparc
which I sent to this list.


H.J.