Wednesday, May 12, 2010

Introduction to Bochs

Introduction to Bochs
1. Bochs is another emulator (virtual machine) supports X86.
2. Support multiple platforms: Linux, Windows, *BSD
3. Can compiled on Linux and Windows
4. Bochs-2.4.1 does not compile on 64bit CentOS. Bochs-2.4.5 OK.
5. On-line document is old. There is no bochs-dlx command mentioned in Chapter 3.3
6. ./configure --enable-debugger --enable-disasm --enable-debugger-gui=0


11.常用的bochs调试命令
c 继续执行
s count 单步执行,count为指令数量
vb seg:off 例如vb 0x0000:0x7c00(虚拟地址断点)
lb addr 线性地址断点
pb 物理地址断点
info break 断点相关信息
x /10 从当前地址执行10条指令
info cpu
info r 寄存器

Quick ref:
http://wiki.minix3.org/en/UsersGuide/RunningMinixOnBochs
http://box.matto.nl/minix3bochs.html
http://dev.csdn.net/article/83/83404.shtm (old)

No comments: