This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: exp/1145: GETENV and lower case env variables access failure under gdb, but ok without
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 18 Mar 2003 17:08:01 -0000
- Subject: Re: exp/1145: GETENV and lower case env variables access failure under gdb, but ok without
- Reply-to: Daniel Jacobowitz <drow at mvista dot com>
The following reply was made to PR exp/1145; it has been noted by GNATS.
From: Daniel Jacobowitz <drow at mvista dot com>
To: gbourgeois at yaccom dot com
Cc: gdb-gnats at sources dot redhat dot com
Subject: Re: exp/1145: GETENV and lower case env variables access failure under gdb, but ok without
Date: Tue, 18 Mar 2003 12:04:25 -0500
On Tue, Mar 18, 2003 at 08:54:11AM -0000, gbourgeois at yaccom dot com wrote:
>
> >Number: 1145
> >Category: exp
> >Synopsis: GETENV and lower case env variables access failure under gdb, but ok without
> >Confidential: no
> >Severity: non-critical
> >Priority: medium
> >Responsible: unassigned
> >State: open
> >Class: sw-bug
> >Submitter-Id: net
> >Arrival-Date: Tue Mar 18 08:58:00 UTC 2003
> >Closed-Date:
> >Last-Modified:
> >Originator: gbourgeois at yaccom dot com
> >Release: unknown-1.0
> >Organization:
> >Environment:
> Cygwin1.20.13 , GNU gdb 5.0 (20010428-3)
> >Description:
> As a program ran without gdb may access to different kind of
> env variables with getenv("UPPER_CASE_VARIABLE") and
> getenv ("lower_case_variable"); if the same program is being debugged with gdb, lowercase access fails since
> gdb creates its won shel and make ALL the variables UPPERCASE ?
This sounds like a problem with your shell if it's converting the names
of environment variables. GDB just uses the shell normally.
[Though perhaps it's time to stop.]
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer