Page 1 of 1

Making bochs' debugger less annoying

Posted: Sat Jun 12, 2010 7:41 am
by Neolander
Hello everyone !

Each time I start Bochs with the debugger enabled, a breakpoint is triggered.

I start to get tired of always giving back focus to the terminal and then type c and return each time I test my code. Is there a way to disable this ?

Re: Making bochs' debugger less annoying

Posted: Sat Jun 12, 2010 11:16 am
by bewing
You have the sourcecode. Just modify it so that on initialization, it automatically does one "continue". Then rebuild.

Re: Making bochs' debugger less annoying

Posted: Sat Jun 12, 2010 11:34 am
by stlw
Neolander wrote:Each time I start Bochs with the debugger enabled, a breakpoint is triggered.
I start to get tired of always giving back focus to the terminal and then type c and return each time I test my code. Is there a way to disable this ?
I do:

echo "c" | bochs -f .bocshrc.my

Re: Making bochs' debugger less annoying

Posted: Sat Jun 12, 2010 12:43 pm
by Creature
stlw wrote:
Neolander wrote:Each time I start Bochs with the debugger enabled, a breakpoint is triggered.
I start to get tired of always giving back focus to the terminal and then type c and return each time I test my code. Is there a way to disable this ?
I do:

echo "c" | bochs -f .bocshrc.my
Thanks for the tip, hadn't thought of that yet. Had to change it on Windows to echo c instead of echo "c" though.

Re: Making bochs' debugger less annoying

Posted: Sat Jun 12, 2010 2:13 pm
by Neolander
stlw wrote:
Neolander wrote:Each time I start Bochs with the debugger enabled, a breakpoint is triggered.
I start to get tired of always giving back focus to the terminal and then type c and return each time I test my code. Is there a way to disable this ?
I do:

echo "c" | bochs -f .bocshrc.my
It doesn't work : *all* breakpoints are automatically passed, and grub crashes. Just as if "c" was echoed again each time Bochs looks for input.

However, this works :

Code: Select all

echo c > comm_test
bochs -qf support/bochsrc.txt -rc comm_test
rm -f comm_test