Problem with LD_LIBRARY_PATH and gdb 4.18
Jason Molenda
jsm@cygnus.com
Wed Sep 1 23:04:00 GMT 1999
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
More information about the Gdb
mailing list