Andrew Eikum : winedbg: In gdbproxy file, allow wine paths with spaces.

Alexandre Julliard julliard at winehq.org
Mon Sep 24 15:48:24 CDT 2018


Module: wine
Branch: master
Commit: 52fecef1a237368eee84ebc9b366107ee2509562
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=52fecef1a237368eee84ebc9b366107ee2509562

Author: Andrew Eikum <aeikum at codeweavers.com>
Date:   Mon Sep 24 14:35:04 2018 -0500

winedbg: In gdbproxy file, allow wine paths with spaces.

Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/winedbg/gdbproxy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/programs/winedbg/gdbproxy.c b/programs/winedbg/gdbproxy.c
index 512e011..025cb38 100644
--- a/programs/winedbg/gdbproxy.c
+++ b/programs/winedbg/gdbproxy.c
@@ -1890,7 +1890,7 @@ static BOOL gdb_exec(const char* wine_path, unsigned port, unsigned flags)
     fd = mkstemps(buf, 0);
     if (fd == -1) return FALSE;
     if ((f = fdopen(fd, "w+")) == NULL) return FALSE;
-    fprintf(f, "file %s\n", wine_path);
+    fprintf(f, "file \"%s\"\n", wine_path);
     fprintf(f, "target remote localhost:%d\n", ntohs(port));
     fprintf(f, "set prompt Wine-gdb>\\ \n");
     /* gdb 5.1 seems to require it, won't hurt anyway */




More information about the wine-cvs mailing list