Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set breakpoint automatically in bochsrc.txt with bochsdbg?

Tags:

bochs

I want to set a breakpoint at 0x7c00 when I run bochsdbg.

I don't want to type these two commands my myself everytime.

  b 0x7c00
  c

How to do it in bochsrc.txt?

Thank you~

like image 966
sam Avatar asked Oct 09 '22 02:10

sam


1 Answers

How about using magic breakpoint? Add magic_break: enabled=1 to your bochsrc file, and then add xchg bx, bx to where you wanna set breakpoint in the asm file.

like image 96
yorath Avatar answered Oct 13 '22 11:10

yorath