Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Levchenko, Vasily V" <vasily.v.levchenko@intel.com>
To: <gdb-patches@sources.redhat.com>
Subject: Relative and absolute paths in link_map
Date: Thu, 17 Feb 2005 16:59:00 -0000	[thread overview]
Message-ID: <9F0F5F4271FA9140BE3E05452E3BDAFE7F3070@mssmsx403.ccr.corp.intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 172 bytes --]

Hi,
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.
--
:vvl

[-- Attachment #2: tls.patch --]
[-- Type: application/octet-stream, Size: 580 bytes --]

Index: gdb/solib-svr4.c
===================================================================
RCS file: /cvs/src/src/gdb/solib-svr4.c,v
retrieving revision 1.47
diff -r1.47 solib-svr4.c
733c733,738
< 	  if ((buffer && strcmp (buffer, objfile->name) == 0)
---
>          char *libname_buffer, *libname;
>          libname_buffer = strrchr(buffer, '/');
>          libname = strrchr(objfile->name, '/');
> 	  if ((buffer 
>                 && (( libname_buffer && strcmp(libname_buffer, libname) == 0 )
>                 || (!libname_buffer &&  strcmp (buffer,objfile->name ) == 0)))

             reply	other threads:[~2005-02-17 15:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-17 16:59 Levchenko, Vasily V [this message]
2005-02-17 17:13 ` Kevin Buettner
2005-02-17 23:48   ` Daniel Jacobowitz
2005-02-18  2:32     ` Kevin Buettner
2005-02-18 16:51 Levchenko, Vasily V

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9F0F5F4271FA9140BE3E05452E3BDAFE7F3070@mssmsx403.ccr.corp.intel.com \
    --to=vasily.v.levchenko@intel.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox