您的位置:首页 > 其它

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

2011-04-09 15:50 751 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: