https://bugs.winehq.org/show_bug.cgi?id=51844
Bug ID: 51844 Summary: winedbg command line arguments are not quoted properly Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winedbg Assignee: wine-bugs@winehq.org Reporter: mail@robbertvanderhelm.nl Distribution: ---
The program name and command line arguments passed to `winedbg` and `winedbg --gdb` are not quoted properly. Running `winedbg --gdb 'foo bar.exe' arg1 'arg 2'` will cause winedbg to execute `foo` with the arguments `bar.exe`, `arg1`, `arg`, and `2`, instead of `foo bar.exe` being run with two arguments. This is inconsistent with both regular `wine` invocations as well as with `gdb --args`. Currently all of the remaining arguments are simply concatenated to a command line string for CreateProcessA() with spaces in between the arguments.
I've already submitted a patch for this here: https://www.winehq.org/pipermail/wine-devel/2021-October/197216.html
https://bugs.winehq.org/show_bug.cgi?id=51844
Robbert van der Helm mail@robbertvanderhelm.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Robbert van der Helm mail@robbertvanderhelm.nl --- I was about to rebase and resubmit the patch, but then I saw that 94ca4be2a62cdb05adaee524084875b04b283afb now does the same thing.
https://bugs.winehq.org/show_bug.cgi?id=51844
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 7.0-rc1.