我无法弄清楚为什么我的本地符号没有加载到使用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
关于如何解决此问题的任何想法? 谢谢!
答案 0 :(得分:1)
因为驱动程序尚未加载。厌恶的bp是可以的。它们将在驱动程序负载上得到解决。这是正常行为,无需修复此问题&#34;。