Relative and absolute paths in link_map

Daniel Jacobowitz drow@false.org
Thu Feb 17 23:48:00 GMT 2005


On Thu, Feb 17, 2005 at 09:14:15AM -0700, Kevin Buettner wrote:
> On Thu, 17 Feb 2005 18:20:43 +0300
> "Levchenko, Vasily V" <vasily.v.levchenko@intel.com> wrote:
> 
> > This is a patch corrects comparing of the shared object names which
> > could be relative and absolute.
> > Situation:
> > 	To get tls-variable from shared library.
> 
> Hi Vasily,
> 
> Thanks for your patch!
> 
> In the future, please send some sort of context diff, that is, patches
> generated either with "diff -u" or "diff -C".  (I also like it when the
> "-p" switch is used.)
> 
> I have read your patch and understand what it is doing, but before
> putting your change in, I'd first like to understand why it's necessary.
> Could you offer a bit more explanation about why it is needed?  Do you
> happen to have a small test case?

I'd also like to see a testcase.  The patch compares only the basenames
of libraries (it should use lbasename from libiberty, by the way), but
it's possible to have two DSO plugins with the same basename and
different directories loaded.

-- 
Daniel Jacobowitz
CodeSourcery, LLC



More information about the Gdb-patches mailing list