WinDbg c 级调试? [英] WinDbg c-level debugging?

查看:38
本文介绍了WinDbg c 级调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚开始步进我的内核模式 USB 驱动程序,它是在汇编程序中.如何将 WinDbg 配置为 c 级调试?这就是我现在的样子 =/

Just started to step my kernel mode usb driver and it is in assembler. How do I configure WinDbg to c-level debugging? This is how i looks now =/

MyDriver!MyDriver_EvtDeviceAdd+0xb:
af20801b 833d647020af03  cmp     dword ptr [MyDriver!DebugLevel (af207064)],3
0: kd> p
MyDriver!MyDriver_EvtDeviceAdd+0x2e:
af20803e ff15006020af    call    dword ptr [MyDriver!_imp__KeGetCurrentIrql (af206000)]
0: kd> p
MyDriver!MyDriver_EvtDeviceAdd+0x58:
af208068 8d95a8feffff    lea     edx,[ebp-158h]
0: kd> p
MyDriver!MyDriver_EvtDeviceAdd+0x64:
af208074 c785bcfeffff508420af mov dword ptr [ebp-144h],offset MyDriver!MyDriver_EvtDevicePrepareHardware (af208450)

推荐答案

WinDbg 找不到 pdb 文件.正确填写所有 WinDbg 路径:

WinDbg cannot find pdb files. Fill properly all WinDbg paths:

  1. 符号搜索路径 - 必须包括驱动程序 .pdb 文件和 MS 调试符号的本地路径.

  1. Symbol search path - must include driver .pdb files and local path for MS debugging symbols.

源搜索路径 - 必须包含包含驱动源文件的目录.

Source search path - must include directory with driver source files.

图像文件路径 - 必须包含驱动程序 .sys 文件.

Image file path - must contain driver .sys file.

查看 WinDbg 日志:它报告尝试加载调试信息的所有错误.如果您看到无法加载 your_driver.sys 的调试信息"之类的信息,则说明有问题.

Look at WinDbg log: it reports all errors trying to load debug information. If you see something like "Cannot load debug information for your_driver.sys", something is wrong.

这篇关于WinDbg c 级调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆