From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5930 invoked by alias); 19 May 2005 17:33:58 -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 7898 invoked from network); 19 May 2005 17:24:08 -0000 Received: from unknown (HELO lakermmtao06.cox.net) (68.230.240.33) by sourceware.org with SMTP; 19 May 2005 17:24:08 -0000 Received: from white ([68.9.64.121]) by lakermmtao06.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050519172408.CSE749.lakermmtao06.cox.net@white> for ; Thu, 19 May 2005 13:24:08 -0400 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 1DYoki-0007DC-00 for ; Thu, 19 May 2005 13:24:08 -0400 Date: Thu, 19 May 2005 17:33:00 -0000 From: Bob Rossi To: GDB Subject: Re: environment variables in CLI Message-ID: <20050519172408.GA27689@white> Mail-Followup-To: GDB References: <20050519162310.GA26748@white> <20050519162543.GA23073@nevyn.them.org> <20050519164311.GB26748@white> <20050519170841.GA24717@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050519170841.GA24717@nevyn.them.org> User-Agent: Mutt/1.3.28i X-SW-Source: 2005-05/txt/msg00199.txt.bz2 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, set environment -- Set environment variable value to give the program Thanks, Bob Rossi