Fix for Bug 3671 - QEMU GDB stub listens on IPv6-only port on Windows 7
authorGareth Stockwell <gareth.stockwell@accenture.com>
Mon, 06 Sep 2010 16:25:43 +0100
changeset 107 3bc1a978be44
parent 105 70ccc05e6c8c
child 108 78b83e1454a6
Fix for Bug 3671 - QEMU GDB stub listens on IPv6-only port on Windows 7 The connection string used by the GDB stub does not specify which version of the Internet Protocol should be used by the port on which it listens. On host platforms with IPv6 support, such as Windows 7, this means that the stub listens on an IPv6-only port. Since the GDB client uses IPv4, this means that the client cannot connect to QEMU.
symbian-qemu-0.9.1-12/qemu-symbian-svp/gdbstub.c
--- a/symbian-qemu-0.9.1-12/qemu-symbian-svp/gdbstub.c	Tue Sep 07 23:21:20 2010 +0100
+++ b/symbian-qemu-0.9.1-12/qemu-symbian-svp/gdbstub.c	Mon Sep 06 16:25:43 2010 +0100
@@ -2291,7 +2291,7 @@
     if (*p == 0) {
         /* A numeric value is interpreted as a port number.  */
         snprintf(gdbstub_port_name, sizeof(gdbstub_port_name),
-                 "tcp::%d,nowait,nodelay,server", port_num);
+                 "tcp:127.0.0.1:%d,nowait,nodelay,server", port_num);
         port = gdbstub_port_name;
     }