Creating OS with Virtual Machine - debugging

Programming, for all ages and all languages.
Post Reply
yee1
Member
Member
Posts: 42
Joined: Sun Feb 10, 2013 4:02 pm

Creating OS with Virtual Machine - debugging

Post 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.
DLBuunk
Member
Member
Posts: 39
Joined: Sun May 18, 2008 9:36 am
Location: The Netherlands

Re: Creating OS with Virtual Machine - debugging

Post 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
gerryg400
Member
Member
Posts: 1801
Joined: Thu Mar 25, 2010 11:26 pm
Location: Melbourne, Australia

Re: Creating OS with Virtual Machine - debugging

Post by gerryg400 »

You can attach gdb to vmware. It works well although long mode is a little clumsy to debug.
If a trainstation is where trains stop, what is a workstation ?
Post Reply