Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Matt Welsh <mdw@cs.berkeley.edu>
To: Jason Molenda <jsm@cygnus.com>
Cc: gdb@sourceware.cygnus.com
Subject: Re: Problem with LD_LIBRARY_PATH and gdb 4.18
Date: Wed, 01 Sep 1999 23:30:00 -0000	[thread overview]
Message-ID: <199909020632.XAA23639@bhikku.CS.Berkeley.EDU> (raw)
In-Reply-To: <19990901230402.A19637@cygnus.com>

Jason,

Jason Molenda <jsm@cygnus.com> writes:
> 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.

This turned out to be the problem.

On my system, 'tcsh' is my default shell, but my .cshrc execs bash
instead when the shell is interactive (don't ask why). However for
non-interactive shells, the .cshrc is executed which does in fact 
set LD_LIBRARY_PATH to something bogus. I would have never guessed this
to be the problem, since I didn't know gdb spawned a new shell for the
process!

Thanks,
Matt Welsh


       reply	other threads:[~1999-09-01 23:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <19990901230402.A19637@cygnus.com>
1999-09-01 23:30 ` Matt Welsh [this message]
1999-09-01 20:49 Matt Welsh
1999-09-01 22:55 ` Kevin Buettner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199909020632.XAA23639@bhikku.CS.Berkeley.EDU \
    --to=mdw@cs.berkeley.edu \
    --cc=gdb@sourceware.cygnus.com \
    --cc=jsm@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox