Checked in: [RFA/commit/Windows] run program with space in path to exe.

Joel Brobecker brobecker@adacore.com
Wed Oct 24 15:01:00 GMT 2012


> 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



More information about the Gdb-patches mailing list