This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: environment variables in CLI
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