This is the mail archive of the
mailing list for the Cygwin project.
Re: environment question: gdb and PWD
On Thu, Apr 19, 2001 at 02:46:18PM +0200, Craveiro, Marco wrote:
> forgive me if the question is dumb, but I could not find any info in the
> info pages for gdb and I am not sure
> if this is a cygwin behaviour or a gdb thing. Question is, when I do a "show
> env" in gdb I do not get the
> PWD variable. Since my program uses getenv it crashes when I debug it
> (unless I set PWD manually).
> Is there a way of starting gdb so that it inherits PWD?
I can't reproduce your problem. Regardless of starting gdb w/ or
w/o GUI, it always has PWD in it's environment. Are you using the
latest gdb for Cygwin?
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:email@example.com
Red Hat, Inc.
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple