how debug os with qemu and vc2008

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
hitlar
Posts: 9
Joined: Wed Jul 03, 2013 8:25 pm

how debug os with qemu and vc2008

Post by hitlar »

i write down a simple operating system in vc2008 with -zi option, but i do not know how it will debug with qemu?
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Re: how debug os with qemu and vc2008

Post by neon »

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.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
Post Reply