Bona Fide OS Development
http://forums.osdever.net/

How to debug bootloader on a virtual pc in real time
http://forums.osdever.net/viewtopic.php?f=6&t=183
Page 1 of 1

Author:  likesogunfire [ Sat Feb 20, 2010 9:10 am ]
Post subject:  How to debug bootloader on a virtual pc in real time

I wanted to ask, how to to debug my boot-loader on a virtual pc in a real time, how to make this happen?

Thanks

Author:  Kieran [ Sat Feb 20, 2010 1:14 pm ]
Post subject:  Re: How to debug bootloader on a virtual pc in real time

For this I use Qemu paired with GDB, it allows for single stepping and so much more.

Check it out.

Author:  likesogunfire [ Sat Feb 20, 2010 2:49 pm ]
Post subject:  Re: How to debug bootloader on a virtual pc in real time

Forgive me, I'm using Windows XP and BOCHS virtual PC and as I understand then what have you provided me whit is only for Linux, any other ideas?

Author:  Kieran [ Sun Feb 21, 2010 12:14 pm ]
Post subject:  Re: How to debug bootloader on a virtual pc in real time

Actually, they are both available for windows, just search for windows versions. I will providethe versions to use, I remember hving problems with different versions of the apps. Qemu can be built using cygwin to target windows and gdb is available, pre-compiled under mingw and cygwin.

Hope that helps

Author:  Agalloch [ Sun Feb 21, 2010 12:32 pm ]
Post subject:  Re: How to debug bootloader on a virtual pc in real time

Hey,

Both Bochs and QEMU are available for both Windows and Linux.

While working on Bochs on Windows, you can get real time debugging capabilities using the Bochs built-in debugger, included in a special build. The build is included in the districtued package, and goes by the name "bochsdbg.exe". If you run this version, and boot it like normal, it should immediately breakpoint on the first instruction (The first instruction of the BIOS). You can then use the Debug Windows to issue commands and check data about the running system.

Thanks,

James

Page 1 of 1 All times are UTC - 6 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/