print · rss · source

< Annexe B - Arithmétique en base 16 | TutoOS | Annexe D - Gérer les arguments sur la pile avec les Stack Frame >


Bochs doit avoir été compilé avec l'option --enable-debugger pour être utilisé en mode debug.

Commandes utiles

  • h - show list of debugger commands

Général

  • n - execute instruction stepping over subroutines
  • s [count] - execute #count instructions (default is one instruction)
  • b <addr> - set a physical address instruction breakpoint
  • c - continue executing
  • r - list of CPU registers and their contents
  • info sregs - show segment registers
  • info eflags - show decoded EFLAGS register
  • xp xp /nuf <addr> - examine memory at physical address
  • print-stack [num_words] - print the num_words top 16 bit words on the stack

Segments, interruptions, gestion de tâches

  • info gdt - show global descriptor table
  • info idt - show interrupt descriptor table
  • info tss - show current task state segment

Pagination

  • info tab - show page tables
  • page <addr> - calc physical address
  • info creg - show CR0-CR4 registers
  • lb <addr> - set a linear address instruction breakpoint
  • x /nuf <addr> - examine memory at linear address
  • info dirty - show physical pages dirtied (written to) since last display

< Annexe B - Arithmétique en base 16 | TutoOS | Annexe D - Gérer les arguments sur la pile avec les Stack Frame >

print · rss · source
Page last modified on June 08, 2008, at 08:49 AM