From: Daniel Jacobowitz <drow@false.org>
To: GDB <gdb@sources.redhat.com>
Subject: Re: environment variables in CLI
Date: Thu, 19 May 2005 18:10:00 -0000 [thread overview]
Message-ID: <20050519173744.GA26691@nevyn.them.org> (raw)
In-Reply-To: <20050519172408.GA27689@white>
On Thu, May 19, 2005 at 01:24:08PM -0400, Bob Rossi wrote:
> On Thu, May 19, 2005 at 01:08:41PM -0400, Daniel Jacobowitz wrote:
> > On Thu, May 19, 2005 at 12:43:11PM -0400, Bob Rossi wrote:
> > > Breakpoint 1 at 0x80af805: file main.cpp, line 469.
> > > (gdb) r
> > > main-program: error while loading shared libraries: libqt.so: cannot open shared object file: No such file or directory
> >
> > That isn't "GDB's search path for shared libraries", it's the system
> > path; the error does not come from GDB. You do need to set
> > LD_LIBRARY_PATH.
>
> O, OK. I see the problem. The problem is, I have the C and C++ shared
> libraries in /home/foo/lib. I don't want to set the LD_LIBRARY_PATH
> before I start GDB, or it'll use those libraries.
>
> If I do 'set environment LD_LIBRARY_PATH=...' does that only effect the
> inferior, and not GDB? The help says,
Correct.
--
Daniel Jacobowitz
CodeSourcery, LLC
prev parent reply other threads:[~2005-05-19 18:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 16:23 Bob Rossi
2005-05-19 16:25 ` Daniel Jacobowitz
2005-05-19 16:43 ` Bob Rossi
2005-05-19 16:50 ` Bob Rossi
2005-05-19 17:08 ` Daniel Jacobowitz
2005-05-19 17:33 ` Bob Rossi
2005-05-19 18:10 ` Daniel Jacobowitz [this message]
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=20050519173744.GA26691@nevyn.them.org \
--to=drow@false.org \
--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