1

我无法弄清楚为什么我的本地符号没有为使用 WDK 和 VS2013 编译的内核驱动程序加载。
我构建驱动程序并将 myDriver.pdb 放在 C:\Symbols\local 中,然后将 myDriver.sys 复制到我的虚拟机中。我使用 VirtualKD 启动调试器,安装驱动程序,然后查看我加载的模块或尝试在 myDriver!DriverEntry 上设置断点。当我尝试断点时,我得到:

BP expression myDriver.sys!DriverEntry could not be resolved, adding deferred bp

我的符号路径是:

C:\Symbols\local;srv*C:\Symbols\symcache*http://msdl.microsoft.com/download/symbols

当我尝试 .reload /f myDriver.sys 我得到:

kd> .reload /f myDriver.sys

"myDriver.sys" was not found in the image list.
Debugger will attempt to load "myDriver.sys" at given base 00000000`00000000.

Please provide the full image name, including the extension (i.e. kernel32.dll)
for more reliable results.Base address and size overrides can be given as
.reload <image.ext>=<base>,<size>.
DBGENG:  myDriver.sys - Partial symbol image load missing image info
DBGHELP: No header for myDriver.sys.  Searching for dbg file
DBGHELP: c:\symbols\local\myDriver.dbg - file not found
DBGHELP: c:\symbols\local\sys\myDriver.dbg - path not found
DBGHELP: c:\symbols\local\symbols\sys\myDriver.dbg - path not found
DBGHELP: .\myDriver.dbg - file not found
DBGHELP: .\sys\myDriver.dbg - path not found
DBGHELP: .\symbols\sys\myDriver.dbg - path not found
DBGHELP: myDriver.sys missing debug info.  Searching for pdb anyway

DBGHELP: myDriver - private symbols & lines 
    c:\symbols\local\myDriver.pdb - unmatched
Unable to add module at 00000000`00000000

关于如何解决这个问题的任何想法?谢谢!

4

1 回答 1

1

因为驱动程序还没有加载。延迟 bp 没问题。它们将在驱动程序加载时得到解决。这是正常行为,无需“修复此问题”。

于 2014-04-23T07:24:05.867 回答