「Bochs」- 禁用 Debugger 功能 @20210304
问题描述
系统环境:Debian GNU/Linux 10 (buster)
软件版本:Bochs x86 Emulator 2.6.9
当启动 Bochs 之后,进入调试模式,显示命令提示符。即使使用 -q 选项,也只能跳过启动菜单。
我们希望可以将其当作 模拟器 来运行,即直接执行程序而不进入调试模式。
解决方法
目前(11/11/2020)没有选项来禁止进入 Debugger 模式。
方法一、重新编译(推荐)
重新编译 Bochs 命令,并不要启用 --enable-debugger 选项。
# 第一步、下载二进制文件 # https://sourceforge.net/projects/bochs/files/bochs/ # 第二步、编译安装 ./cofigure make make install
方法二、使用 -rc 选项
通过 -rc 选项,将要执行的命令写入文件,并传递给 Bochs 执行。
参考文献
Bochs x86 PC emulator / Thread: [Bochs-developers] How to disable the bochs debugger
Bochs x86 PC emulator / Thread: Re: [Bochs-developers] How to disable the bochs debugger
Installation
3.4. Compiling Bochs