summarylogtreecommitdiffstats
path: root/do-not-specify-gdb-hostname.patch
blob: 7dc14d990edcc5d24a69ed951e94c21d07cb2676 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/src/sandbox-posix.c b/src/sandbox-posix.c
index 0ccb55a..00f8d33 100644
--- a/src/sandbox-posix.c
+++ b/src/sandbox-posix.c
@@ -834,7 +834,7 @@ int bxfi_exec(bxf_instance **out, bxf_sandbox *sandbox,
 
         switch (sandbox->debug.debugger) {
             case BXF_DBG_GDB:
-                snprintf(port, sizeof (port), "tcp:%d", sandbox->debug.tcp);
+                snprintf(port, sizeof (port), ":%d", sandbox->debug.tcp);
                 break;
             case BXF_DBG_LLDB:
                 argv[argc++] = "gdbserver";
diff --git a/src/sandbox-windows.c b/src/sandbox-windows.c
index 790f695..e67b019 100644
--- a/src/sandbox-windows.c
+++ b/src/sandbox-windows.c
@@ -423,7 +423,7 @@ int bxfi_exec(bxf_instance **out, bxf_sandbox *sandbox,
             } break;
             case BXF_DBG_GDB: {
                 dbg = TEXT("gdbserver");
-                TCHAR *fmt = TEXT("boxfort-worker tcp:%d %s %s");
+                TCHAR *fmt = TEXT("boxfort-worker :%d %s %s");
 
                 size = _sctprintf(fmt, sandbox->debug.tcp, filename,
                         env_map);