如何在macosx上通过源码安装bochs2.4.6并使用peter-bochs进行调试

1.修改.conf.macosx:

#!/bin/sh

# this sets up the compile for MacOS X
## To support plugins on macosx, you must have "dlcompat" installed.  You can# get dlcompat by installing the fink package "dlcompat-devel".  On the SF
# compile farm, dlcompat is in /sw/include and /sw/lib, so we have added
# those paths to the environment variables.

set echo
CFLAGS="-arch i386 -m32 -pipe -O3 -I/sw/include -fomit-frame-pointer -finline-functions -falign-loops=16 -fal
ign-jumps=16 -falign-functions=16 -falign-labels=16 -falign-loops-max-skip=15 -falign-jumps-max-skip=15 -fpre
fetch-loop-arrays $CFLAGS"
CPATH="/sw/include"
CPPFLAGS=""
CXXFLAGS="$CFLAGS"
LDFLAGS="-arch i386 -m32 -L/sw/lib"
CXX="g++ -arch i386 -m32"
export CFLAGS
export CPATH
export CPPFLAGS
export CXXFLAGS
export LDFLAGS
export CXX
./configure --enable-sb16 /
            --enable-ne2000 /
            --enable-all-optimizations /
            --enable-cpu-level=6 /
            --enable-x86-64 /
            --enable-pci /
            --enable-acpi /
            --enable-clgd54xx /
            --enable-usb /
     --enable-plugins /
            --enable-debugger /
            --enable-disasm /
            ${CONFIGURE_ARGS}


2.生成makefile:

    sh .conf.macosx

3.编译:
   
    make

4.安装:

    sudo make install

至此,安装成功.


5.如何运行peter-bochs:

java -jar peter-bochs-debugger.jar -osdebug ./bochs.app/Contents/MacOS/bochs -f ./.bochsrc

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值