Bochs: Difference between revisions

m
→‎Magic Breakpoint: Improved wording and linked to Bochs documentation.
[unchecked revision][unchecked revision]
m (→‎Magic Breakpoint: Improved wording and linked to Bochs documentation.)
Line 107:
 
===Magic Breakpoint===
When you're using bochsBochs with the [http://bochs.sourceforge.net/doc/docbook/user/internal-debugger.html internal debugger], then you can trigger the debugger via a system called [http://bochs.sourceforge.net/doc/docbook/user/bochsrc.html#AEN2324 magic breakpoints]. To trigger a breakpoint, you can insert <tt>xchg bx, bx</tt> (in GAS syntax, <tt>xchgw %bx, %bx</tt>) anywhere in the code and bochsBochs will trap into the debugger as soon as it executes it. On real systems this has no effect as it only replaces the BX register with itself.
 
You should put the following line in your bochsBochs configuration file to have it listen to magic breakpoints:
magic_break: enabled=1
 
On older versions, enabling the debugger alone doesn't compile in magic breakpoint support, you will need to pass <tt>--enable-magic-breakpoint</tt> to configure forthe build on those versions.
 
===Debugging SMP===
29

edits