驱动之路_VM+WlnDbg安装(双机调试)

所需要的工具:

 

dbg_x86_6.11.1.404.msi      虚拟机映像加载即可使用.exe(xp系统)  VMware_9.0.2.1031769_XiaZaiBa.zip(虚拟机)

 

步骤:

1.先在本机安装dbg_x86_6.11.1.404.msi (傻瓜式安装)

2.然后在虚拟机安装dbg_x86_6.11.1.404.msi (傻瓜式安装)

  2.1在虚拟机里面的C:\boot.in加入内容:

      

  

[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" /noexecute=optin /fastdetect /noexecute=alwaysoff

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="WinDbg双机调试" /noexecute=optin /fastdetect /noexecute=alwaysoff /debug /debugport=com1 /baudrate=115200

 

 

红色部分是我新添加的

3.  关闭虚拟机,新建一个串口,

 

 

继续,一直点默认就好了

 

 

 

 

 

虚拟机上的就配置完了,

 

4.打开dbg_x86_6.11.1.404安装目录,新建bat文件:内容如下:

 

start "" windbg_cn.exe  -b -k com:pipe,port=\\.\pipe\com_1,baud=115200,reconnect -y

windbg_cn.exe是你软件的名字,后面的是启动参数.

 

就这样就OK了.可以进行双机调试了

 

 

 

 

 

 

 

 四、windbg和VM的相关配置

 

1、在VM中使用命名管道模拟一个串口

 

\\.\pipe\com_1

 

This end is then server

 

the other and is an application

 

2、主机 增加windbg快捷方式

 

  -b -k com:pipe,port=\\.\pipe\com_1,baud=115200,reconnect -y

 

3、被调试机 在boot.ini中增加一行

 

/fastdetect /debug /debugport=com1 /baudrate=115200

 

 

posted @ 2013-09-01 17:03  宝贝,我永远都在  阅读(567)  评论(0)    收藏  举报