bochs 2.2.6 編譯和GDB調試

來源:互聯網
上載者:User
Table of Contents 1 在ubuntu 10.04上面編譯bochs 2.2.6遇到了一些編譯問題 1.1 修改源檔案 symbols.cc 1.2 安裝如下package: 1.3 config 1.4 make 1 在ubuntu 10.04上面編譯bochs 2.2.6遇到了一些編譯問題
symbols.cc: At global scope:symbols.cc:137: error: ISO C++ forbids declaration of ‘hash_map’ with no typesymbols.cc:137: error: expected ‘;’ before ‘<’ tokensymbols.cc:145: error: expected constructor, destructor, or type conversion before ‘<’ tokensymbols.cc: In constructor ‘context_t::context_t(Bit32u)’:symbols.cc:152: error: ‘map’ was not declared in this scopesymbols.cc: In static member function ‘static context_t* context_t::get_context(Bit32u)’:symbols.cc:173: error: ‘map’ was not declared in this scopemake[1]: *** [symbols.o] Error 1make: *** [bx_debug/libdebug.a] Error 2
1.1 修改源檔案 symbols.cc
using namespace std;#ifdef __GNUC__  using namespace __gnu_cxx; #endif  (新加的)
1.2 安裝如下package:
sudo apt-get install build-essentialsudo apt-get install xorg-devsudo apt-get install bison
1.3 config 如果需要使用gdb:
./configure --enable-gdb-stub --enable-new-pit --enable-all-optimizations --enable-4meg-pages --enable-global-pages --enable-pae --enable-sep --enable-cpu-level=6 --enable-sse=2 --disable-reset-on-triple-fault --with-all-libs
如果使用bochs內建的debug工具
./configure --enable-disasm --enable-debugger --enable-new-pit --enable-all-optimizations --enable-4meg-pages --enable-global-pages --enable-pae --enable-sep --enable-cpu-level=6 --enable-sse=2 --disable-reset-on-triple-fault --with-all-libs
1.4 make
$make$sudo make install

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.