This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Checked in: [RFA/commit/Windows] run program with space in path to exe.
On 10/24/2012 04:01 PM, 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"]
>
I see, thanks.
> /me wishes that CreateProcess was taking a list of arguments, rather
> than a string of space-separated tokens....
:-)
--
Pedro Alves