Windbg 和符号
当我在堆栈顶部显示的方法之一 (!CLRStack) 上设置断点时,对于调试对象引用的每个 DLL(包括 .NET Framework 的 DLL),我都会收到大量此类消息。
错误:模块加载已完成,但无法加载符号
进一步深入研究表明,windbg 并未加载我在符号路径中提供的每个 .pdb 文件。我已经仔细检查了符号的路径,看起来不错,但以下命令清楚地表明并非所有 PDB 都已正确加载!
0:000> !sym 嘈杂
噪音模式 - 符号提示打开
0:000> .重新加载
重新加载当前模块
...................................................... ............
DBGHELP:ntdll - 公共符号
c:\符号\ntdll.pdb\6992F4DAF4B144068D78669D6CB5D2072\ntdll.pdb
..
0:000> .同情
符号搜索路径为:SRVc:\symbolsC:\xc
扩展符号搜索路径为:srvc:\symbolsc:\xc
我已将 c:\symbols 用于缓存,将 c:\xc 用于 WinDBG 似乎的 .NET 应用程序 PDB无法找到。知道如何使用来帮助进一步解决此问题吗?
谢谢
When I set a breakpoint on one of the methods that appears on top of the stack (!CLRStack), I get lots of these messages for every DLL that the debuggee is referencing including the .NET Framework ones.
ERROR: Module load completed but symbols could not be loaded
Further digging into this shows that windbg is not loading every .pdb file that I make available in the symbols path. I've double-checked my symbol's path and it looks OK, but the following commands clearly show that not all PDBs are loaded correctly!
0:000> !sym noisy
noisy mode - symbol prompts on
0:000> .reload
Reloading current modules
................................................................
DBGHELP: ntdll - public symbols
c:\symbols\ntdll.pdb\6992F4DAF4B144068D78669D6CB5D2072\ntdll.pdb
..
0:000> .sympath
Symbol search path is: SRVc:\symbolsC:\xc
Expanded Symbol search path is: srvc:\symbolsc:\xc
I've c:\symbols being used for the cache and c:\xc being used for the .NET app PDBs that WinDBG seems unable to find. Any idea how I can use to help further troubleshoot this?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SRV 前缀意味着该目录的布局类似于符号服务器。如果您的目录不使用符号服务器层次结构,则应仅使用
C:\Symbols;C:xc
而不是SRV*C:\Symbols*C:\Xc< /代码>
The SRV prefix implies the directory is laid out like a symbol server. If you have a directory that does not use the symbol server hiarchy, you should just use
C:\Symbols;C:xc
instead ofSRV*C:\Symbols*C:\Xc