From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27367 invoked by alias); 24 Oct 2012 15:01:59 -0000 Received: (qmail 27358 invoked by uid 22791); 24 Oct 2012 15:01:59 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_NO,TW_RG X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 24 Oct 2012 15:01:54 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id AAD5A1C67A4; Wed, 24 Oct 2012 11:01:53 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id XmTCXUUqK-Zk; Wed, 24 Oct 2012 11:01:53 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 936261C662F; Wed, 24 Oct 2012 11:01:53 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 6B05EC88A1; Wed, 24 Oct 2012 11:01:51 -0400 (EDT) Date: Wed, 24 Oct 2012 15:01:00 -0000 From: Joel Brobecker To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: Checked in: [RFA/commit/Windows] run program with space in path to exe. Message-ID: <20121024150151.GJ3555@adacore.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <508801B4.7060608@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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/msg00450.txt.bz2 > 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.... -- Joel