转自:http://www.cnblogs.com/linucos/archive/2012/03/31/2426927.html
ubuntu10.04上自带的bochs不能调试,需要自行编译带有调试功能的bochs.
1.源码
bochs-2.4.6.tar.gz
2.安装依赖库
sudo apt-get install build-essential xorg xorg-dev gnome-core-devel
3.编译bochs
./configure --enable-debugger --enable-disasm
make -j5
sudo make install
4. bochs需要的所有东西都具有了,可以删除掉从包安装的bochs
sudo apt-get remove bochs bochsbiso bochs-doc
5. bochs配置
romimage: file=/usr/local/share/bochs/BIOS-bochs-latest
vgaromimage: file=/usr/local/share/bochs/VGABIOS-lgpl-latest
其他不变就可以了