bochs2.3.7调试版本在ubuntu9.10上的编译安装

如果不需要调试功能的话,直接sudo apt-get install bochs
如果需要调试功能,就有点复杂了。

1.

sudo apt-get install build-essential
sudo apt-get install xorg-dev
sudo apt-get install bison

2.
到bochs官方网站下载源码包bochs-2.3.7.tar.gz,只试验了此版本,最新版有点问题。

3. 进入目录

./configure –with-x11 –enable-debugger –enable-disasm –enable-pci –enable-pcidev –enable-plugins –enable-ne2000 –enable-pnic
make && make install

 

出错,修改文件bx_debug/symbols.cc
在97行之后加入代码如下,

隐藏行号 复制代码 这是一段程序代码。

  1. using namespace std; 
  2. #ifdef __GNUC__ //修?改?
  3. using namespace __gnu_cxx; //修?改?
  4. #endif //修?改?
  5. struct symbol_entry_t

.src_container { background-color: rgba(231, 229, 220, 1); width: 99%; overflow: hidden; margin: 12px 0 !important; padding: 0 3px 3px 0 }
.src_container .titlebar { background-color: rgba(212, 223, 255, 1); border-top: 1px solid rgba(79, 129, 189, 1); border-right: 1px solid rgba(79, 129, 189, 1); border-bottom: 0; border-left: 1px solid rgba(79, 129, 189, 1); padding: 3px 24px; margin: 0; width: auto; line-height: 120%; overflow: hidden; text-align: left; font-size: 12px }
.src_container .toolbar { display: inline; font-weight: normal; font-size: 100%; float: right; color: rgba(0, 0, 255, 1); text-align: left; overflow: hidden }
.toolbar span.button { display: inline; font-weight: normal; font-size: 100%; color: rgba(0, 0, 255, 1); text-align: left; overflow: hidden; cursor: pointer }
.src_container div.clientarea { background-color: rgba(255, 255, 255, 1); border: 1px solid rgba(79, 129, 189, 1); margin: 0; width: 100%; height: auto; overflow: auto; text-align: left; font-size: 12px; font-family: “Courier New”, “Consolas”, “Fixedsys”, courier, monospace, serif }
.src_container ol.mainarea { padding: 0 0 0 52px; margin: 0; background-color: rgba(247, 247, 255, 1) !important }
.number_show { padding-left: 52px !important; list-style: decimal outside !important }
.number_show li { list-style: decimal outside !important; border-left: 1px dotted rgba(79, 129, 189, 1) }
.number_hide { padding-left: 0 !important; list-style-type: none !important }
.number_hide li { list-style-type: none !important; border-left: 0 }
ol.mainarea li { display: list-item !important; font-size: 12px !important; margin: 0 !important; line-height: 18px !important; padding: 0 !important; background-color: rgba(247, 247, 255, 1) !important; color: rgba(79, 129, 189, 1) }
ol.mainarea li pre { color: rgba(0, 0, 0, 1); line-height: 18px; padding: 0 0 0 12px !important; margin: 0; background-color: rgba(255, 255, 255, 1) !important }
.linewrap ol.mainarea li pre { white-space: ; word-wrap: break-word }
ol.mainarea li pre.alt { background-color: rgba(247, 247, 255, 1) !important }原文链接:https://www.cnblogs.com/hhuai/archive/2010/03/01/1675403.html
本文来源 爱码网,其版权均为 原网址 所有 与本站无关,文章内容系作者个人观点,不代表 本站 对观点赞同或支持。如需转载,请注明文章来源。

© 版权声明

相关文章