This is the mail archive of the
mailing list for the GDB project.
Re: Checked in: [RFA/commit/Windows] run program with space in path to exe.
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.