Bona Fide OS Developer
View unanswered posts | View active topics It is currently Thu Mar 28, 2024 4:27 pm



Post new topic Reply to topic  [ 5 posts ] 
 How to debug bootloader on a virtual pc in real time 
Author Message

Joined: Mon Feb 08, 2010 12:20 pm
Posts: 12
Post 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


Sat Feb 20, 2010 9:10 am
Profile
Site Admin

Joined: Sat Jul 25, 2009 7:44 am
Posts: 274
Location: United Kingdom
Post 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.

_________________
Thank you for reading,

Kieran C G Foot


Sat Feb 20, 2010 1:14 pm
Profile WWW

Joined: Mon Feb 08, 2010 12:20 pm
Posts: 12
Post 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?


Sat Feb 20, 2010 2:49 pm
Profile
Site Admin

Joined: Sat Jul 25, 2009 7:44 am
Posts: 274
Location: United Kingdom
Post 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

_________________
Thank you for reading,

Kieran C G Foot


Sun Feb 21, 2010 12:14 pm
Profile WWW

Joined: Tue Jul 28, 2009 4:09 am
Posts: 58
Location: United Kingdom
Post 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


Sun Feb 21, 2010 12:32 pm
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin and tweaked by the BF Team.