QEMU with IP4 GDB fix
5/3/2010
GDB and QEMU when using GDB have a critical bug on Windows Vista and Windows 7. Its a 2 second fix, one line of code. Well known even... but for some reason the QEMU team just has not fixed it although its been around for a few years now (yes we and others have posted on the forums, and we've also submitted a bug report). Worse yet, they don't build for Windows and the build process is complicated and relies on many older hard to find versions of Cywgwin, etc. But we've fixed it, and here is the binary distro of 0.12.3 for Windows.
The problem is that when using GDB, it listens only on IP6 on Vista and Windows 7, but many GDB clients are IP4 only. This essentially makes GDB useless. The fix is described at http://migeel.sk/blog/2009/04/21/gdb-and-qemu-on-windows/. Build instructions for Windows are at http://qemu-forum.ipi.fi/viewtopic.php?f=22&t=5308
Or you can simply save yourself the trouble and download our build here:
- QEMU 0.12.3 for Windows with IP4 GDB fix.
Update
Apparently there is an easier work around.
qemu -S -gdb tcp::1234,ipv4 <...other parameters>
This "sneaks" extra info into the TCP port creation.
<< Previous Entry Next Entry >>
Use my contact form to contact me directly.
