VM+Windbg配置实现kernel调试

1.       安装 windbg

2.       配置 windbg

a)         File à symbol file path… (ctrl +s)

b)        输入SRV*c:/windows/symbols*http://msdl.microsoft.com/download/symbols

c)        桌面新建快捷方式,地址为
"D:/Program Files/Debugging Tools for Windows/windbg.exe" -b -k com:pipe,port=//./pipe/com_1,resets=0
这里是我的安装地址,你自己修改。

3.       配置 VMware

a)         vm中的系统关机

b)        打开congfiguration editor

c)        添加硬件

d)        选择 serial port

e)         选择 use named pipe, 改为 //./pipe/com_1

f)         选择this end is the server

g)        选择 the other end is an application

h)        advanced 选择 Yield on CPU poll

i)          完成

4.       配置VMware中系统

a)         开机

b)        c盘中的BOOT.ini 文件的只读属性去掉后改写

c)        复制一个新的启动项,如下

d)       

[boot loader]
timeout
=30
default
=multi(0)disk(0)rdisk(0)partition(1 )WINDOWS

[operating systems]

multi(
0)disk(0)rdisk(0)partition(1)WINDOWS="Microsoft Windows XP Professional"  /fastdetect
multi(
0)disk(0)rdisk(0)partition(1)WINDOWS="Microsoft Windows XP Professional - DEBUG" /fastdetect /debugport=com1 /baudrate=115200

e)         新建的项后面添加/debugport=com1 /baudrate=115200,确保他们和你新建的项位于同一行

f)         重启

5.       打开系统进入调试态

a)         选择debug系统,等待系统暂停

6.       打开windbg

 

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值