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

本文介绍了一种使用Windbg进行跨平台调试的方法。具体步骤包括:在宿主机上配置Windbg远程调试驱动程序,在客户端上通过Windbg本地调试应用程序。此外还详细说明了如何设置共享文件夹、网络连接等辅助步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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文件。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值