From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29920 invoked by alias); 19 May 2005 18:10:19 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 14020 invoked from network); 19 May 2005 17:37:45 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 19 May 2005 17:37:45 -0000 Received: from drow by nevyn.them.org with local (Exim 4.50) id 1DYoxs-0006xN-R8 for gdb@sources.redhat.com; Thu, 19 May 2005 13:37:44 -0400 Date: Thu, 19 May 2005 18:10:00 -0000 From: Daniel Jacobowitz To: GDB Subject: Re: environment variables in CLI Message-ID: <20050519173744.GA26691@nevyn.them.org> Mail-Followup-To: GDB References: <20050519162310.GA26748@white> <20050519162543.GA23073@nevyn.them.org> <20050519164311.GB26748@white> <20050519170841.GA24717@nevyn.them.org> <20050519172408.GA27689@white> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050519172408.GA27689@white> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-05/txt/msg00200.txt.bz2 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