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.
--- 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;
}