Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Michael Snyder <msnyder@redhat.com>
Cc: Kevin Buettner <kevinb@redhat.com>,
	Kris Warkentin <kewarken@qnx.com>,
	"Gdb@Sources.Redhat.Com" <gdb@sources.redhat.com>
Subject: Re: Why does solib_open do what it does?
Date: Wed, 18 Jun 2003 19:16:00 -0000	[thread overview]
Message-ID: <20030618191600.GB9449@nevyn.them.org> (raw)
In-Reply-To: <3EF0B23E.8040406@redhat.com>

On Wed, Jun 18, 2003 at 11:41:02AM -0700, Michael Snyder wrote:
> You don't think that gdb should honor LD_LIBRARY_PATH in native
> debugging, if it is set?  Won't the linker-loader honor it?
> 
> I'd be ready to agree that, if solib-search-path is set,
> it should override LD_LIBRARY_PATH.  But if it isn't set...

As far as I'm concerned, the linker should always set the absolute
pathname, and we shouldn't be doing any of this junk.  I had to
reimplement ELF search order a few months ago.  It's considerably more
complex then what we do here - DT_RPATH for example.

> >In fact, for remote debugging, leaving these checks in is rather
> >dangerous.  If, for some reason, the shared lib is not found via
> >either solib-absolute-prefix or solib-search-path, we don't want
> >to search paths on the host file system which refer to the hosts
> >libraries.   If the file is found via one of these paths, it is
> >almost certainly wrong, and I've seen cases where this can cause
> >wildly unpredictable behavior.  (E.g, segfaults on the target, or
> >breakpoints being hit at strange places.)
> 
> Agreed.  Indeed, I think LD_LIBRARY_PATH is required for native,
> and always wrong for cross.  Is there any way we can use that
> distinction?  Maybe with a configure variable?

No.  Please take a look at PR gdb/633 and the discussion there.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2003-06-18 19:16 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-17 19:01 Kris Warkentin
2003-06-17 19:13 ` Daniel Jacobowitz
2003-06-17 19:14   ` Kris Warkentin
2003-06-17 19:37     ` Elena Zannoni
2003-06-17 19:47       ` Kris Warkentin
2003-06-17 20:01     ` Kevin Buettner
2003-06-17 20:15       ` Kris Warkentin
2003-06-17 20:24         ` Kevin Buettner
2003-06-18  0:14           ` Michael Snyder
2003-06-18  1:43             ` Kris Warkentin
2003-06-18  5:33               ` Kevin Buettner
2003-06-18 12:11                 ` Kris Warkentin
2003-06-18 15:07                   ` Kris Warkentin
2003-06-18 18:52                     ` Michael Snyder
2003-06-18 19:09                       ` Kris Warkentin
2003-06-18 19:20                         ` Andrew Cagney
2003-06-18 20:10                         ` Michael Snyder
2003-06-18 20:17                           ` Kris Warkentin
2003-06-18 19:14                       ` Daniel Jacobowitz
2003-06-18 18:45                   ` Michael Snyder
2003-06-18 18:41                 ` Michael Snyder
2003-06-18 19:16                   ` Daniel Jacobowitz [this message]
2003-06-18 20:11                     ` Michael Snyder
2003-06-18 20:19                       ` Kris Warkentin
2003-06-18 20:27                       ` Daniel Jacobowitz
2003-06-18 20:51                         ` Michael Snyder
2003-06-19 12:24                           ` Kris Warkentin
2003-06-19 23:33                             ` Kevin Buettner
2003-06-20  0:02                               ` Kevin Buettner
2003-06-20 12:28                                 ` Kris Warkentin
2003-06-20 12:43                                   ` Kevin Buettner

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=20030618191600.GB9449@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=gdb@sources.redhat.com \
    --cc=kevinb@redhat.com \
    --cc=kewarken@qnx.com \
    --cc=msnyder@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