This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]