From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19694 invoked by alias); 10 Dec 2012 16:40:42 -0000 Received: (qmail 19397 invoked by uid 22791); 10 Dec 2012 16:40:38 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,MSGID_MULTIPLE_AT X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.153) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 10 Dec 2012 16:40:34 +0000 Received: from md14.u-strasbg.fr (md14.u-strasbg.fr [130.79.200.249]) by mailhost.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id qBAGeTkx022125 ; Mon, 10 Dec 2012 17:40:29 +0100 (CET) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from mailserver.u-strasbg.fr (ms15.u-strasbg.fr [130.79.204.115]) by md14.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id qBAGeTv0030302 ; Mon, 10 Dec 2012 17:40:29 +0100 Received: from E6510Muller (gw-ics.u-strasbg.fr [130.79.210.225]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id qBAGeR86029690 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) ; Mon, 10 Dec 2012 17:40:28 +0100 (envelope-from pierre.muller@ics-cnrs.unistra.fr) From: "Pierre Muller" To: "'Eli Zaretskii'" Cc: , References: <83y5hjt8ll.fsf@gnu.org> <20121130153401.GH2768@adacore.com> <83wqx3t6r9.fsf@gnu.org> <20121130162852.GD32262@adacore.com> <50B902D0.6060809@redhat.com> <20121203113147.GB12055@adacore.com> <20121209235344.GA12152@ednor.casa.cgf.cx> <20121210105115.GB15147@adacore.com> <20121210110128.GA12570@calimero.vinschen.de> <20121210134935.GL31477@adacore.com> <20121210153510.GB17188@adacore.com> <002401cdd6f0$c0b317b0$42194710$%muller@ics-cnrs.unistra.fr> <834njtc1qw.fsf@gnu.org> In-Reply-To: <834njtc1qw.fsf@gnu.org> Subject: RE: [RFA/mingw32] environment variables are case-insensitive on win32 Date: Mon, 10 Dec 2012 16:40:00 -0000 Message-ID: <000601cdd6f5$10b26230$32172690$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-12/txt/msg00254.txt.bz2 > > (gdb) set prompt top> > > top> r > > Starting program: e:\pas\fpc-2.6.0\bin\i386-Win32\gdbpurepython.exe > > ... Some output suppressed > > (gdb) [New Thread 5920.0xb04] > > [New Thread 5920.0x1588] > > show env > > ALLUSERSPROFILE=C:\ProgramData > > ... More output suppressed > > PROMPT=$P$G > > PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ > > PUBLIC=C:\Users\Public > > RoxioCentral=C:\Program Files (x86)\Common Files\Roxio Shared\10.0\Roxio > > Central36\ > > SESSIONNAME=Console > > SystemDrive=C: > > SystemRoot=C:\Windows > > TEMP=C:\Users\Pierre\AppData\Local\Temp > > test1=lower > > Test1=Mixed > > TEST1=UPPER > > ... More output suppressed > > You _are_ aware that "show env" is a GDB command, right? What you > need to do is run some Windows program after pushing these variables > into the environment, and then see what that problem gets as > environment. Hi Eli, I am totally aware of this, but please note that I run this command in the debuggee (prompt is (gdb), not top>) (I should have remoced the [New Thread] information message that probably confused you) and GDB itself is a Windows program like any other one, and the environment is passed from top to debuggee through the env field of CreateProcess call in windows_create_process Furthermore compiling testenv.c $ cat testenv.c #include "stdio.h" int main (int argc, char **argv, char **env) { int envindex = 1; char *curr_env = *env; while (curr_env) { printf("env#%d is %s\n",envindex,curr_env); curr_env = env [envindex]; envindex++; } return 0; } also shows the three different versions of test1 Short extract of running testenv inside mingw GDB after having set the same env variables env#52 is TEMP=C:/Users/Pierre/AppData/Local/Temp env#53 is TERM=cygwin env#54 is test1=lower env#55 is Test1=Mixed env#56 is TEST1=UPPER env#57 is TMP=C:/Users/Pierre/AppData/Local/Temp env#58 is USERDOMAIN=E6510-Muller Pierre