[Reserved] Bochs common debugging instructions bochs 2.6.8 common set of commands

Quote:   https://www.cnblogs.com/jikebiancheng/p/6160337.html

 

bochs 2.6.8 set of common commands

setting a breakpoint at the B addr physical address addr physical memory address, segment base without

 

Lb linear address addr to set breakpoints linear physical address, no access baseplates

 

vb set a breakpoint on the virtual address for the segment base addr: offset address, cs segment

 

c Continue know breakpoint is encountered

 

n Step skip subroutine and interrupt routines int

 

s single step

 

s NUM (number plus one instruction after s) performing step n

 

dump_cpu view the register information (measured down to this directive seems to do so ...)

 

x / nuf addr specified display data memory address, addr may be linear memory address may be a virtual address format is the base: base register or offset: Offset

Display data length n 

data unit size u b, h, w, g bytes corresponding 1,2,4,8

f data format x, d, u, o, t, c respectively correspond to hex, decimal, unsigned decimal, octal, binary, string

  

u [/ count] start end disassemble some linear memory (acting as the above)

(Article count parameter specifies the number of instructions to be disassembled, and examples: u / 5 - Disassembly of the start address of the current instruction 5)

 

info set of instructions

info b shows the current breakpoint status information

Since the show info dirty dirty pages in physical memory since the last show in (the written page)

info execution state program to show the program (unusable!)

info r | reg | rigisters display the contents of the register

info cpu shows CPU register contents

FPU register show info fpu state

info idt shows interrupt descriptor table

info ivt show the interrupt vector table (not valid protected mode)

info gdt show global descriptor table

info tss show the current task state segment

info cr registers CR0-CR4 display state (not used)

info flags showing the flag register (not use)

 

Register inquiry

See general register r

See section sreg register (es, cs, gs, ss, fs, ds and idt, gdt, ldt, tr)

See creg control register (cr0, cr1, cr2, cr3)

dreg View debug registers (dr0-dr7)

x / nuf [addr] display contents linear address (Linear Address) of

 

xp / nuf [addr] Display contents of the physical address (Physical Address) of

 

N means the number of parameters displayed

 

The size of each display cell parameters u, u can be one of the following:

 b BYTE

  • h WORD
  • w DWORD
  • g DWORD64

 

Note: This nomenclature is in accordance with the GDB habits, and not in accordance with the norms of intel.

 

f show format, f can be one of the following:

  

  • x in hexadecimal display
  • d decimal display
  • u displayed in an unsigned decimal
  • o According to octal
  • in accordance with binary display t
  • c Follow the character display

  

n, f, u is an optional parameter, if not specified, the default is u w, f default x. If used in front or x

 

Xp those commands, or the last x value xp used in accordance with the command. n is 1 by default. addr is a

 

Optional parameter, if not specified, addr is 0, such as using a front or xp x command specifying a n = i,

 

n i + 1 when default is performed again.

 

Guess you like

Origin www.cnblogs.com/davytitan/p/12100248.html