在非开发机器上调试windows驱动和user mode客户端的的方法

host os: Windows 7 with Visual Studio 2008 and vmware installed
target os: windows xp, running on vmware

Now we are developing a user mode application using vc 2008 and a windows driver using wdk. We build binary files (including  .exe and .sys files) on host os, and run them on target os.

Problem: How to debug them.

Solution:
1.在host机器上运行windbg,连接到windows xp上,远程调试sys文件。
   
2.在client上利用windbg本地调试exe文件。
    a) 在host机器上共享出源代码所在的盘符,设置好权限
    b) 在vmware中把windows xp所在的client的网络连接设置为host only
    c) 在client上,打开cmd,利用“net use //192.168.201.1 /user:vigour”命令连接到host,其中192.168**为host的ip,vigour为共享的用户名。
    d) 在client中的explorer中,把host共享出来的盘符映射为本地盘符。保持盘符的名称相同,如都是D盘。
    e) 在client中安装windbg,利用windbg本地调试exe文件。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章