linux下bochs的安装及简单使用
来源:互联网 发布:ip网络报警器 编辑:程序博客网 时间:2024/06/06 02:31
linux下安装bochs:
1:下载bochs-2.3.5
2:tar vxzf bochs-2.3.5.tar.gz
3:cd bochs-2.3.5
6:make install
romimage: file=/usr/local/share/bochs/BIOS-bochs-latest
vgaromimage: file=/usr/local/share/bochs/VGABIOS-lgpl-latest
然后bochs -f bochsrc开始调试:(部分指令)
b 0x7c00:set a breakpoint at 0x7c00
c:let the code execute
s:execute one step
n:execute one step and jump when there is a function
dump_cpu:list the regesiters
info break :list the information of all breakpoints
info cpu:
r:base information of regesiter
print-stack:
x:list the information of memory physical address or linear address
:use "help x" to list the usage detailed
1:下载bochs-2.3.5
2:tar vxzf bochs-2.3.5.tar.gz
3:cd bochs-2.3.5
4:./configure --enable-debugger --enable-disasm --with-nogui
//我们一般在虚拟机上安装linux,因此可能很多包都没有安装。
//按照本书的思想,我们在windows下编写代码,在linux下编译并debug,最后在windows下查看成果
//因此我选择--with-nogui选项,这样就不会安装图形界面,只能调试,但是已经够用了
5:make6:make install
至此bochs安装完成
********************************************************************************************************************
创建软盘:bximage
写软盘: dd if boot.bin of=a.img bs=512 count=1 conv=notrunc
配置 .bochsrc 文件(默认情况下,bochs会在当前目录下按照顺序寻找 .bochsrc bochsrc bochsrc.txt)
********************************************************************************************************************
注意:(与课本上的不同)romimage: file=/usr/local/share/bochs/BIOS-bochs-latest
vgaromimage: file=/usr/local/share/bochs/VGABIOS-lgpl-latest
然后bochs -f bochsrc开始调试:(部分指令)
b 0x7c00:set a breakpoint at 0x7c00
c:let the code execute
s:execute one step
n:execute one step and jump when there is a function
dump_cpu:list the regesiters
info break :list the information of all breakpoints
info cpu:
r:base information of regesiter
print-stack:
x:list the information of memory physical address or linear address
:use "help x" to list the usage detailed
- linux下bochs的安装及简单使用
- linux下bochs的安装及简单运行
- Linux下的bochs安装
- Linux下Bochs的安装
- Ubuntu 下bochs 的安装与使用
- Linux下Bochs的使用(转载)
- linux 下使用bochs遇到的问题
- Linux 下虚拟机Bochs的使用
- ubuntu8.04下bochs安装及调试linux 0.11内核
- 在LINUX下安装BOCHS
- 在LINUX下安装BOCHS
- linux下安装编译Bochs
- ubuntu下bochs安装使用
- Linux下git的安装及简单使用
- Linux下git的安装及简单使用
- Linux下git的安装及简单使用
- Linux环境下Mysql的安装及简单使用
- Linux下安装及简单使用nmap
- 中国联通网上营业厅,12306式的网站?
- preg_match作用
- ATL控件 总结
- C# 处理302后获取COOKIE
- shell中date
- linux下bochs的安装及简单使用
- struts.xml中编写无提示的解决
- HTML转义字符串
- 在模拟器上安装APK的简单方法
- 黑马程序员- java语言基础组成
- 记写在开始学习设计模式前的话
- 2013年3月17日
- 24点游戏的Matlab程序
- 使用NSoperation 实现异步加载图片