Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Robert Bu <robert.bu@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: How to set the path of shared library in Linux
Date: Wed, 27 Feb 2008 05:49:00 -0000	[thread overview]
Message-ID: <20080227032357.GA24771@caradoc.them.org> (raw)
In-Reply-To: <a0319f700802261916p29815c85ice625d524367be69@mail.gmail.com>

On Wed, Feb 27, 2008 at 11:16:19AM +0800, Robert Bu wrote:
> As you can see GDB always tries
> "/home/STools/RLX/scv-1.0p2-sysc-2.2.0-gcc-3.2.3/lib-linux/" instead of
> using "/home/robert_bu/local/rlxvm_static_gcc323/lib" as I set.
> 
> However, If I set this path to LD_LIBRARY_PATH, GDB can find it
> successfully.

GDB uses solib-search-path to find libraries for debugging.  It
doesn't affect what libraries your program uses when it runs, so you
do have to use LD_LIBRARY_PATH.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2008-02-27  3:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-27  3:24 Robert Bu
2008-02-27  5:49 ` Daniel Jacobowitz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-02-27  2:29 Robert Bu
2008-02-27  3:16 ` Daniel Jacobowitz

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=20080227032357.GA24771@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=robert.bu@gmail.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