This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problem with LD_LIBRARY_PATH and gdb 4.18


On Wed, Sep 01, 1999 at 10:55:26PM -0700, Kevin Buettner wrote:

> Another thing you might try is the command
> 
> 	show env LD_LIBRARY_PATH
> 
> from within gdb to make sure that gdb knows about this environment
> variable.


Keep in mind that if you have a .profile or .bashrc (on Linux) and it
sets the LD_LIBRARY_PATH unconditionally, I _believe_ the inferior will
get that .profile L_L_P setting instead of the one you had in gdb.

A lot of people run into this, it is somewhat nonintuitive IMHO.
I haven't thought through the issue in depth, though; I vaguely remember
that other people had a good reason for this behavior.

J

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]