Making bochs' debugger less annoying

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
Neolander
Member
Member
Posts: 228
Joined: Tue Mar 23, 2010 3:01 pm
Location: Uppsala, Sweden
Contact:

Making bochs' debugger less annoying

Post 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 ?
User avatar
bewing
Member
Member
Posts: 1401
Joined: Wed Feb 07, 2007 1:45 pm
Location: Eugene, OR, US

Re: Making bochs' debugger less annoying

Post by bewing »

You have the sourcecode. Just modify it so that on initialization, it automatically does one "continue". Then rebuild.
stlw
Member
Member
Posts: 357
Joined: Fri Apr 04, 2008 6:43 am
Contact:

Re: Making bochs' debugger less annoying

Post 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
User avatar
Creature
Member
Member
Posts: 548
Joined: Sat Dec 27, 2008 2:34 pm
Location: Belgium

Re: Making bochs' debugger less annoying

Post 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.
When the chance of succeeding is 99%, there is still a 50% chance of that success happening.
User avatar
Neolander
Member
Member
Posts: 228
Joined: Tue Mar 23, 2010 3:01 pm
Location: Uppsala, Sweden
Contact:

Re: Making bochs' debugger less annoying

Post 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
Post Reply