【问题标题】:Trouble Loading local symbols in WinDBG - Kernel Driver在 WinDBG 中加载本地符号时遇到问题 - 内核驱动程序
【发布时间】:2014-04-22 17:39:35
【问题描述】:

我无法弄清楚为什么我的本地符号没有为使用 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

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

【问题讨论】:

    标签: windbg debug-symbols windows-kernel


    【解决方案1】:

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

    【讨论】:

    • 我已经安装了驱动,不应该已经加载了吗?
    • 感谢您为我指明了正确的方向,最终导致加载驱动程序出现问题,并且它从未真正使用我的驱动程序代码来加载符号。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-09-06
    相关资源
    最近更新 更多