
Sreg View segment registers (es, cs, gs, ss, fs, ds and idt, gdt,Ĭreg View control registers (cr0, cr1, cr2, cr3) Info flags display flag register (unavailable) Info cr shows CR0 -CR4 register status (unavailable) Info ivt shows interrupt vector table (invalid in protected mode) Info idt shows interrupt description table Info fpu shows the status of FPU registers Info cpu shows the contents of CPU registers Info r|reg|rigisters display registers Content Info program displays the execution status of the program (unavailable!) Info dirty displays the dirty pages (written pages) in the physical memory since the last display Info b displays the current breakpoint status information (the count parameter indicates the number of instructions to be disassembled, for example: u/5 - disassemble 5 instructions starting from the current address) U respectively start end Disassemble a piece of linear memory (the effect is the same as above) U Data unit size b, h ,w,g correspond to 1, 2, 4, 8 bytesį Data display format x, d, u, o, t, c correspond to hexadecimal, decimal, unsigned decimal, octal, binary, string The format is base address: offset or base address register: offset X/nuf addr Displays the data of the specified memory address, addr can be a linear memory address, or a virtual address. S num (add a number after the s instruction) execute n steps ofĭump_cpu to view the register information (this instruction does not seem to work according to the actual measurement.) N single step execution jump Through the subroutine and the int interrupt program Vb Set the breakpoint addr at the virtual address as the segment base address: offset address, cs segmentĬ continue execution until it encounters the breakpoint Lb Set the breakpoint addr at the linear address as the linear physical address, without adding the base address

Addr is the physical memory address without adding the segment base address Some instructions found on the Internet cannot be used due to version problems (I used 2.4.6):ī addr Set a breakpoint at the physical address. Let's have some debugging instructions from bochsdbg. * -enable-debugger is open bochs comes with a debuggerĪssociated with gdb debugger support within bochs on another linux, not specific compilation method Tried it, to be updated.

#Bochs debug software#
* -prefix=/opt/bochs/debug which directory the software will be installed into configure -prefix=/opt/bochs/debug -enable-plugins -enable-debugger -enable- disasm

To compile src on linux, you need to set compile options at compile time:
