编译可以使用 gdb 进行调试的 bochs
编译环境 win7 + cygwin-2.8.2(x86, 32位)
1 2 3 4
   | svn checkout svn://svn.code.sf.net/p/bochs/code/tags/REL_2_6_7_FINAL/bochs bochs cd bochs ./configure --enable-gdb-stub make && make install
   | 
 
注意在cygwin-2.8.2这个版本下,目前 bochs 2.6.7 可以编译成功,其它新版本均会在编译时报错
调试
1 2 3 4 5
   |  gdbstub: enabled=1, port=1234, text_base=0, data_base=0, bss_base=0
  gdb (gdb) target remote localhost:1234
 
  | 
 
bochs 中安装 centos
创建磁盘
1 2 3
   | 
  bximage -mode=create -hd=7168G -imgmode=growing -q centos.img
 
  | 
 
bximage
1
   | bximage.exe -q -mode=create -hd=1024M -imgmode=growing centos.img
   | 
 
参考
- bochs home page
 
- bochs project page
 
- Bochs User Manual
 
- Disk Images
 
- SeaBIOS