Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Paul Koning <pkoning@equallogic.com>
To: gp@qnx.com
Cc: gdb@sources.redhat.com
Subject: Re: set env affects host?
Date: Wed, 13 Nov 2002 14:47:00 -0000	[thread overview]
Message-ID: <15826.54940.676306.297836@pkoning.dev.equallogic.com> (raw)
In-Reply-To: <Pine.NTO.4.21.0211131734410.985735193-100000@node128.ott.qnx.com>

>>>>> "Graeme" == Graeme Peterson <gp@qnx.com> writes:

 Graeme> Well, I think I have answered my own question by checking in
 Graeme> the source.  I found a comment in solib.c for solib_open that
 Graeme> says that solib symbols are found in the inferior's
 Graeme> LD_LIBRARY_PATH, and never in the host's.  So I guess that is
 Graeme> that.  :-)

 Graeme> Search order: * If path is absolute, look in
 Graeme> SOLIB_ABSOLUTE_PREFIX.  * If path is absolute or relative,
 Graeme> look for it literally (unmodified).  * Look in
 Graeme> SOLIB_SEARCH_PATH.  * Look in inferior's $PATH.  * Look in
 Graeme> inferior's $LD_LIBRARY_PATH.

 Graeme> Anyone care to comment on the rationale behind the behavior?
 Graeme> Clearly it seemed reasonable to me to find the solibs for
 Graeme> symbols in the host's LD_LIBRARY_PATH, but that is wrong.

Looking in the host LD_LIBRARY_PATH, or for that matter using absolute
names literally, is likely to be wrong for cross-debugging.
Fortunately the literal lookup is not the first thing tried, but as
far as I'm concerned it might as well go away entirely if host !=
target. 

	paul



  reply	other threads:[~2002-11-13 22:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-13 13:02 Graeme Peterson
2002-11-13 14:44 ` Graeme Peterson
2002-11-13 14:47   ` Paul Koning [this message]
2002-11-13 14:57     ` Daniel Jacobowitz
2002-11-13 18:56       ` gp

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=15826.54940.676306.297836@pkoning.dev.equallogic.com \
    --to=pkoning@equallogic.com \
    --cc=gdb@sources.redhat.com \
    --cc=gp@qnx.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