Page 1 of 1

Quick Question Relating Bochs Debugger

Posted: Wed Jan 28, 2009 10:50 am
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

Re: Quick Question Relating Bochs Debugger

Posted: Wed Jan 28, 2009 11:04 am
by AJ
Hi,

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

Cheers,
Adam

Re: Quick Question Relating Bochs Debugger

Posted: Wed Jan 28, 2009 11:30 am
by Creature
Thank you very much :).

Re: Quick Question Relating Bochs Debugger

Posted: Thu Jan 29, 2009 12:31 am
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.)

Re: Quick Question Relating Bochs Debugger

Posted: Fri Jan 30, 2009 10:21 am
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

Re: Quick Question Relating Bochs Debugger

Posted: Fri Jan 30, 2009 6:08 pm
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?

Re: Quick Question Relating Bochs Debugger

Posted: Sat Jan 31, 2009 8:44 am
by bewing
Yes, x11. And almost OSX, but the makefiles are really messed up.

Re: Quick Question Relating Bochs Debugger

Posted: Sat Jan 31, 2009 11:11 am
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).