Page 1 of 1

Creating OS with Virtual Machine - debugging

Posted: Sun Feb 10, 2013 4:10 pm
by yee1
Hi, I am new in OS develpping. I know quite good asm, c and pc architecture, so i think i have good enough background to start with it. So far i have been develpping ms-dos .com applications for fun. My question is about debugging this what i have created so far. I want to use virtual machine like vmware or virtual box to create my operating system. But what about debugging it ? How to check out what cpu registers are changed during os running ?

Please help me about it becouse I am quite confused to how deal with it, thank you very much.

Re: Creating OS with Virtual Machine - debugging

Posted: Sun Feb 10, 2013 6:43 pm
by DLBuunk
Please search the wiki first: http://wiki.osdev.org/Emulators

I would advise bochs, it may be the slowest, but it's build-in debugger is great: http://wiki.osdev.org/Bochs

Re: Creating OS with Virtual Machine - debugging

Posted: Mon Feb 11, 2013 2:44 am
by gerryg400
You can attach gdb to vmware. It works well although long mode is a little clumsy to debug.