Hi,
Is it possible to debug (step by step) bootsector code ( for an experimental OS ) using VMWare and WinDbg attached to the VMWare?
I am using VMWare Server 1.0.4 and WinDbg 6.8.0004.
Kind Regards,
Miguel Lopes
Debugging bootsector code (VMWare/WinDbg)
[quote=http://www.osdev.org/wiki/VMWare]
Workstation 6.0 (Fusion 1.0/1.1). Useful feature: gdb-based guest debug stub support. Useful feature: record-replay (though difficult to use), which might be helpful for reproducing race conditions. [/quote]
There's some more info on how to use the Guest Debugging feature mentioned there on the page.
Workstation 6.0 (Fusion 1.0/1.1). Useful feature: gdb-based guest debug stub support. Useful feature: record-replay (though difficult to use), which might be helpful for reproducing race conditions. [/quote]
There's some more info on how to use the Guest Debugging feature mentioned there on the page.
I've been writing miserably bad code since I was 12, and things haven't changed yet...
Aye, 'twas me. VMware can handle attaching a gdb debugger, which is the best way to debug the kernel itself. The option is on the wiki page. BUT, I don't remember if the debug stub existed on Server1.0. (The stub was in the codebase then, but I think it is compiled out of all released builds. Sorry.)JAAman wrote:awhile back, someone claiming to work for VMware posted on here
Can't attach WinDbg to a virtual machine. I know of no software that runs the WinDbg debugger protocol outside MSFT - believe me, I and people I know have looked.
Honestly, I'd suggest finding yourself a Windows build of gdb and using that. It's what I use for my own debugging. Just be warned that debugging bootsector code is hard - GDB likes to assume all code is at least 32-bit, you need special options to convince it otherwise and it doesn't work as well in 16-bit mode.