From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29959 invoked by alias); 25 Oct 2012 02:48:49 -0000 Received: (qmail 29942 invoked by uid 22791); 25 Oct 2012 02:48:47 -0000 X-SWARE-Spam-Status: No, hits=-50.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,TW_RG X-Spam-Check-By: sourceware.org Received: from mho-04-ewr.mailhop.org (HELO mho-02-ewr.mailhop.org) (204.13.248.74) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 25 Oct 2012 02:48:41 +0000 Received: from pool-173-76-43-156.bstnma.fios.verizon.net ([173.76.43.156] helo=cgf.cx) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.72) (envelope-from ) id 1TRDUu-000Le5-Dt; Thu, 25 Oct 2012 02:48:40 +0000 Received: from localhost (ednor.casa.cgf.cx [192.168.187.5]) by cgf.cx (Postfix) with ESMTP id 5274A13C0C7; Wed, 24 Oct 2012 22:48:39 -0400 (EDT) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19Ls/kqUL+CgYZx/8U3VQLq Date: Thu, 25 Oct 2012 02:48:00 -0000 From: Christopher Faylor To: Pedro Alves , gdb-patches@sourceware.org, Joel Brobecker Subject: Re: Checked in: [RFA/commit/Windows] run program with space in path to exe. Message-ID: <20121025024839.GA13308@ednor.casa.cgf.cx> Mail-Followup-To: Pedro Alves , gdb-patches@sourceware.org, Joel Brobecker References: <1350692925-14181-1-git-send-email-brobecker@adacore.com> <83happzi44.fsf@gnu.org> <20121020162936.GC3050@adacore.com> <83a9vhdpth.fsf@gnu.org> <20121024134243.GH3555@adacore.com> <5087FC78.8010904@redhat.com> <20121024144521.GI3555@adacore.com> <508801B4.7060608@redhat.com> <20121024150151.GJ3555@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121024150151.GJ3555@adacore.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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-10/txt/msg00488.txt.bz2 On Wed, Oct 24, 2012 at 11:01:51AM -0400, Joel Brobecker wrote: >> Ah. The "image name" is a mandatory argument on Windows CE, not optional. >> Are you saying that that would be an alternative fix for gdb? Or is there a >> downside? (Wondering in the sake of convergence in the code bases.) > >We can provide the image name, but we still need to quote it in >the command line, because otherwise, argv is improperly computed. >For instance, instead of being: > > ["/path/to/space dir/exe", "arg1"] > >The program would see: > > ["/path/to/space", "dir/exe", "arg1"] > >/me wishes that CreateProcess was taking a list of arguments, rather >than a string of space-separated tokens.... Yeah, tell me about it. We actually pass a real argv list in Cygwin. The "one long command line" method is rather dumb. Much of the Windows API is not that bad but this is, IMO, one glaring flaw. cgf