Kudzu World

"Programming is an art form that fights back"

Kudzu World  »  Blogspace  »  Kudzu's Tech Blog
English - Română - Русский - عربي

RSS Feed

If you want to more easily stay informed of updates etc you can subscribe to the RSS feed. Just point your RSS reader at this page, auto discovery is enabled.

QEMU with IP4 GDB fix


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:


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 >>


-- No Comments --

Post a comment

Use my contact form to contact me directly.