Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <229D7C0FE0BED311A0E800805F0DD47176CB5B@wn01ex.wn.gb.solvay.com> From: "Craveiro, Marco" To: "'Corinna Vinschen'" Cc: "'cygwin AT cygwin DOT com'" Subject: RE: environment question: gdb and PWD Date: Fri, 20 Apr 2001 10:09:32 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain hello Corinna, thanks for your help. this is probably a newbie related problem... It appears it is to do with where I start gdb from: if I do it from bash it gives me all the environment variables, if I do it from emacs - with emacs starting from bash - PWD and a few others are missing but some are there. I'm using NT emacs. Marco > -----Original Message----- > From: Corinna Vinschen [SMTP:cygwin AT cygwin DOT com] > Sent: Thursday, April 19, 2001 3:26 PM > To: 'cygwin AT cygwin DOT com' > Subject: Re: environment question: gdb and PWD > > On Thu, Apr 19, 2001 at 02:46:18PM +0200, Craveiro, Marco wrote: > > Hello, > > > > 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 > > -- > Corinna Vinschen Please, send mails regarding Cygwin to > Cygwin Developer mailto:cygwin AT cygwin DOT com > Red Hat, Inc. -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple