how debug os with qemu and vc2008
how debug os with qemu and vc2008
i write down a simple operating system in vc2008 with -zi option, but i do not know how it will debug with qemu?
Re: how debug os with qemu and vc2008
I am not aware of any emulators or virtual machines that directly support PE debug information. If you want to support source line debugging, you might need to build your own debugger. Don't worry, basic debuggers are not too hard to build and there are plenty of tutorials on it.
Until then though, you can write debug information to COM1 and have the emulator or virtual machine redirect it to a file.
Until then though, you can write debug information to COM1 and have the emulator or virtual machine redirect it to a file.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}