Bochs: Difference between revisions

m
→‎Magic Breakpoint: Improved wording.
[unchecked revision][unchecked revision]
m (→‎Magic Breakpoint: Improved wording and linked to Bochs documentation.)
m (→‎Magic Breakpoint: Improved wording.)
Line 107:
 
===Magic Breakpoint===
When you're using Bochs with the [http://bochs.sourceforge.net/doc/docbook/user/internal-debugger.html internal debugger], you can trigger the debugger via a systemfacility 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 Bochs will trap into the debugger as soon as it executes it. On real systemshardware this has no effect as it onlymerely replaces the BX register with itself.
 
You should put the following line in your Bochs 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 also need to passspecify <tt>--enable-magic-breakpoint</tt> towhen configureconfiguring the build on those versions.
 
===Debugging SMP===
29

edits