Quick Question Relating Bochs Debugger

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
Creature
Member
Member
Posts: 548
Joined: Sat Dec 27, 2008 2:34 pm
Location: Belgium

Quick Question Relating Bochs Debugger

Post by Creature »

Hello,

I've got a quick question relating the Bochs internal debugger. I've just compiled Bochs myself, to get SDL support (and of course the internal debugger, since the standard binaries for Windows don't have the internal debugger). I was wondering if there is some sort of command-line or bochsrc way to pass a command to the debugger. For example, if Bochs starts my OS, I have to enter 'c' or 'continue' to make the OS actually start. Is there any way I can work around this so I don't have to enter it all the time (I debug my OS a lot ;)).

Thanks in advance,
Creature
When the chance of succeeding is 99%, there is still a 50% chance of that success happening.
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: Quick Question Relating Bochs Debugger

Post by AJ »

Hi,

Have a look -> here <- for information on execution control (including breakpoints :) ).

Cheers,
Adam
User avatar
Creature
Member
Member
Posts: 548
Joined: Sat Dec 27, 2008 2:34 pm
Location: Belgium

Re: Quick Question Relating Bochs Debugger

Post by Creature »

Thank you very much :).
When the chance of succeeding is 99%, there is still a 50% chance of that success happening.
User avatar
bewing
Member
Member
Posts: 1401
Joined: Wed Feb 07, 2007 1:45 pm
Location: Eugene, OR, US

Re: Quick Question Relating Bochs Debugger

Post by bewing »

Huh. Why would you want to use SDL support under windows? It just slows down the rendering.

In my current rewrite of bochs, I was going to turn off every other "VGA window" driver except for the win32 driver, under windoze -- but if people can give me some good reasons why I shouldn't ....

(BTW, Stanislav should be updating bochs to a new version any day now, with the full GUI debugger on SDL, win32, and gtk.)
tantrikwizard
Member
Member
Posts: 153
Joined: Sun Jan 07, 2007 9:40 am
Contact:

Re: Quick Question Relating Bochs Debugger

Post by tantrikwizard »

Creature wrote:since the standard binaries for Windows don't have the internal debugger
The Windows distro includes the debug interface in a different exe. I believe its BochsDbg.exe. Normally you can right click a .bxrc file and it will display a 'Debug' option for the file which will launch BochsDbg.exe
JohnnyTheDon
Member
Member
Posts: 524
Joined: Sun Nov 09, 2008 2:55 am
Location: Pennsylvania, USA

Re: Quick Question Relating Bochs Debugger

Post by JohnnyTheDon »

bewing wrote: (BTW, Stanislav should be updating bochs to a new version any day now, with the full GUI debugger on SDL, win32, and gtk.)
No x11?
User avatar
bewing
Member
Member
Posts: 1401
Joined: Wed Feb 07, 2007 1:45 pm
Location: Eugene, OR, US

Re: Quick Question Relating Bochs Debugger

Post by bewing »

Yes, x11. And almost OSX, but the makefiles are really messed up.
User avatar
Creature
Member
Member
Posts: 548
Joined: Sat Dec 27, 2008 2:34 pm
Location: Belgium

Re: Quick Question Relating Bochs Debugger

Post by Creature »

bewing wrote:Huh. Why would you want to use SDL support under windows? It just slows down the rendering.

In my current rewrite of bochs, I was going to turn off every other "VGA window" driver except for the win32 driver, under windoze -- but if people can give me some good reasons why I shouldn't ....

(BTW, Stanislav should be updating bochs to a new version any day now, with the full GUI debugger on SDL, win32, and gtk.)
Yes, it does slow things down, but I wanted to test some things in fullscreen mode. The SDL GUI isn't exactly the best thing around, but at least the cursor doesn't blink too fast anymore.

I'd use QEMU because it's much faster, but I hate the command line interface, I actually like the way Bochs handles the configuration through the bochsrc file. Besides that, Bochs and QEMU give me a very easy way to instantly debug my OS (VC++ -> F5 and bang, the entire OS compiles with minimal rebuild, links, updates the floppy and starts Bochs with the updated OS).
When the chance of succeeding is 99%, there is still a 50% chance of that success happening.
Post Reply