bochs command
dbg_printf("q|quit|exit - quit debugger and emulator execution\n");
dbg_printf("c|cont|continue - continue executing\n");
dbg_printf("s|step [count] - execute #count instructions on current processor (default is one instruction)\n");
dbg_printf("s|step [cpu] <count> - execute #count instructions on processor #cpu\n");
dbg_printf("s|step all <count> - execute #count instructions on all the processors\n");
dbg_printf("n|next|p - execute instruction stepping over subroutines\n");
dbg_printf("vb|vbreak <seg:offset> - set a virtual address instruction breakpoint\n");
dbg_printf("lb|lbreak <addr> - set a linear address instruction breakpoint\n");
dbg_printf("p|pb|break|pbreak <addr> - set a physical address instruction breakpoint\n");
dbg_printf("d|del|delete <n> - delete a breakpoint\n");
dbg_printf("bpe <n> - enable a breakpoint\n");
dbg_printf("bpd <n> - disable a breakpoint\n");
dbg_printf("blist - list all breakpoints (same as 'info break')\n");
dbg_printf("modebp - toggles mode switch breakpoint\n");
dbg_printf("crc <addr1> <addr2> - show CRC32 for physical memory range addr1..addr2\n");
dbg_printf("trace on - print disassembly for every executed instruction\n");
dbg_printf("trace off - disable instruction tracing\n");
dbg_printf("trace-reg on - print all registers before every executed instruction\n");
dbg_printf("trace-reg off - disable registers state tracing\n");
dbg_printf("trace-mem on - print all memory accesses occured during instruction execution\n");
dbg_printf("trace-mem off - disable memory accesses tracing\n");
dbg_printf("restore <param_name> [path] - restore bochs root param from the file\n");
dbg_printf("for example:\n");
dbg_printf("restore \"cpu0\" - restore CPU #0 from file \"cpu0\" in current directory\n");
dbg_printf("restore \"cpu0\" \"/save\" - restore CPU #0 from file \"cpu0\" located in directory \"/save\"\n");
dbg_printf("ptime - print current time (number of ticks since start of simulation)\n");
dbg_printf("sb <delta> - insert a time breakpoint delta instructions into the future\n");
dbg_printf("sba <time> - insert breakpoint at specific time\n");
dbg_printf("print-stack [num_words] - print the num_words top 16 bit words on the stack\n");
dbg_printf("record <filename> - record console input to file filename\n");
dbg_printf("playback <filename> - playback console input from file filename\n");
dbg_printf("ldsym [global] <filename> [offset] - load symbols from file\n");
dbg_printf("slist [string] - list symbols whose preffix is string (same as 'info symbols')\n");
dbg_printf("r|reg|regs|registers - list of CPU registers and their contents (same as 'info registers')\n");
dbg_printf("fp|fpu - print FPU state\n");
dbg_printf("mmx - print MMX state\n");
dbg_printf("sse|xmm - print SSE state\n");
dbg_printf("sreg - show segment registers\n");
dbg_printf("creg - show control registers\n");
dbg_printf("dreg - show debug registers\n");
dbg_printf("setpmem <addr> <datasize> <val> - set physical memory location of size 'datasize' to value 'val'\n");
dbg_printf("u|disasm [/count] <start> <end> - disassemble instructions for given linear address\n");
dbg_printf(" Optional 'count' is the number of disassembled instructions\n");
dbg_printf("u|disasm switch-mode - switch between Intel and AT&T disassembler syntax\n");
dbg_printf("u|disasm hex on/off - control disasm offsets and displacements format\n");
dbg_printf("u|disasm size = n - tell debugger what segment size [16|32|64] to use\n");
dbg_printf(" when \"disassemble\" command is used.\n");
dbg_printf("watch - print current watch point status\n");
dbg_printf("watch stop - stop simulation when a watchpoint is encountred\n");
dbg_printf("watch continue - do not stop the simulation when watch point is encountred\n");
dbg_printf("watch r|read addr - insert a read watch point at physical address addr\n");
dbg_printf("watch w|write addr - insert a write watch point at physical address addr\n");
dbg_printf("watch r|read addr <len> - insert a read watch point at physical address addr with range <len>\n");
dbg_printf("watch w|write addr <len> - insert a write watch point at physical address addr with range <len>\n");
dbg_printf("unwatch - remove all watch points\n");
dbg_printf("unwatch addr - remove a watch point\n");
dbg_printf("x /nuf <addr> - examine memory at linear address\n");
dbg_printf("xp /nuf <addr> - examine memory at physical address\n");
dbg_printf(" nuf is a sequence of numbers (how much values to display)\n");
dbg_printf(" and one or more of the [mxduotcsibhwg] format specificators:\n");
dbg_printf(" x,d,u,o,t,c,s,i select the format of the output (they stand for\n");
dbg_printf(" b,h,w,g select the size of a data element (for byte, half-word,\n");
dbg_printf(" word and giant word)\n");
dbg_printf(" m selects an alternative output format (memory dump)\n");
dbg_printf("instrument <command> - calls BX_INSTR_DEBUG_CMD instrumentation callback with <command>\n");
dbg_printf("set <regname> = <expr> - set register value to expression\n");
dbg_printf("set $reg = val - set CPU register to value val\n");
dbg_printf("set $auto_disassemble = 1 - cause debugger to disassemble current instruction\n");
dbg_printf(" every time execution stops\n");
dbg_printf("set u|disasm|disassemble on - same as 'set $auto_disassemble = 1'\n");
dbg_printf("set u|disasm|disassemble off - same as 'set $auto_disassemble = 0'\n");
dbg_printf("page <laddr> - show linear to physical xlation for linear address laddr\n");
dbg_printf("info break - show information about current breakpoint status\n");
dbg_printf("info idt - show interrupt descriptor table\n");
dbg_printf("info ivt - show interrupt vector table\n");
dbg_printf("info gdt - show global descriptor table\n");
dbg_printf("info tss - show current task state segment\n");
dbg_printf("info tab - show page tables\n");
dbg_printf("info eflags - show decoded EFLAGS register\n");
dbg_printf("info symbols [string] - list symbols whose prefix is string\n");
dbg_printf("info pic - show PICs registers\n");
dbg_printf("info ne2000 - show NE2000 registers\n");
dbg_printf("info vga - show vga registers\n");
dbg_printf("info pci - show i440fx PCI state\n");
dbg_printf("show <command> - toggles show symbolic info (calls to begin with)\n");
dbg_printf("show - shows current show mode\n");
dbg_printf("show mode - show, when processor switch mode\n");
dbg_printf("show int - show, when interrupt is happens\n");
dbg_printf("show call - show, when call is happens\n");
dbg_printf("show off - toggles off symbolic info\n");
dbg_printf("show dbg-all - turn on all show flags\n");
dbg_printf("show dbg-none - turn off all show flags\n");
dbg_printf("calc|? <expr> - calculate a expression and display the result.\n");
dbg_printf(" 'expr' can reference any general-purpose and segment\n");
dbg_printf(" registers, use any arithmetic and logic operations, and\n");
dbg_printf(" also the special ':' operator which computes the linear\n");
dbg_printf(" address for a segment:offset (in real and v86 mode) or\n");
dbg_printf(" of a selector:offset (in protected mode) pair.\n");