在使用bochs时,在运行时开启gui_debug的方法为修改bochs生成的bochsrc文件。
在Linux中,修改如下
display_library: x, options="gui_debug"
在Windows中,修改如下:
display_library: win32, options="gui_debug"
但是直接运行将会出现问题:Unkown win32 option 'gui_debug'
解决方法为:
通过命令行运行bochsdbg
bochsdbg -q -f bochsrc.bxrc
bochsdbg是具有debug功能的版本,与bochs在同级目录下,要修改系统环境变量使用
参考文献
Bochs x86 PC emulator / Discussion / Help: Bochs enhanced debugger for Windows