public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Kris Warkentin <kewarken@qnx.com>
To: gdb@sources.redhat.com
Subject: Re: solib search algorithm for cross-gdb
Date: Wed, 03 Aug 2005 20:00:00 -0000	[thread overview]
Message-ID: <42F12318.4040307@qnx.com> (raw)
In-Reply-To: <17137.6901.979049.779@gargle.gargle.HOWL>

Paul Koning wrote:

>When I said "cross-gdb" I was thinking about host != target -- for
>example an Intel host and a MIPS target.  Using the literal library
>path can't possibly be right in that case.
>
>Daniel suggests some other cases that are more dynamic -- host ==
>target but we're doing remote debugging.
>
>Right now we have TARGET_SO_FIND_AND_OPEN_SOLIB as a way for the
>target specific code to add another way to find libraries, but we
>don't have any way for any component to subtract ways, which is what I
>need here.
>

Setting solib-absolute-prefix is a the way to subtract searching from 
the root since it either searches <abspath> or 
<solib-abs-pref>/<abspath>, not both.  Don't know if it's practical for 
you but we explicitly set solib-absolute-prefix in our init functions so 
we never have to worry about accidentally getting /usr/lib/somelib.so 
instead of $SDK_ROOT/usr/lib/somelib.so.

cheers,

Kris

  reply	other threads:[~2005-08-03 20:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-03 13:38 Paul Koning
2005-08-03 17:06 ` Daniel Jacobowitz
2005-08-03 18:14   ` Kris Warkentin
2005-08-03 19:15   ` Mark Kettenis
2005-08-03 19:19     ` Daniel Jacobowitz
2005-08-03 19:29     ` Paul Koning
2005-08-03 20:00       ` Kris Warkentin [this message]
2005-08-03 20:16         ` Paul Koning

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=42F12318.4040307@qnx.com \
    --to=kewarken@qnx.com \
    --cc=gdb@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).