|
|
|
Page 1 of 1
|
[ 5 posts ] |
|
How to debug bootloader on a virtual pc in real time
Author |
Message |
likesogunfire
Joined: Mon Feb 08, 2010 12:20 pm Posts: 12
|
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 |
|
|
Kieran
Site Admin
Joined: Sat Jul 25, 2009 7:44 am Posts: 274 Location: United Kingdom
|
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 |
|
|
likesogunfire
Joined: Mon Feb 08, 2010 12:20 pm Posts: 12
|
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 |
|
|
Kieran
Site Admin
Joined: Sat Jul 25, 2009 7:44 am Posts: 274 Location: United Kingdom
|
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 |
|
|
Agalloch
Joined: Tue Jul 28, 2009 4:09 am Posts: 58 Location: United Kingdom
|
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 |
|
|
|
Page 1 of 1
|
[ 5 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 4 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
|
|