Symbol path for WinDbg

馋奶兔 提交于 2019-12-12 05:18:46

问题


My pc underwent an automatic restart and when I checked event viewer, I found the bug check error. I found the location of the .dmp file created. I then downloaded WinDbg and understand the first thing I have to do is set the symbol path and then open crash dump and select the .dmp file. I found a list of the paths to use at https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/setting-symbol-and-source-paths-in-windbg but whenever I open crash dump and click the file, it gives me the error that regarding the symbols. I've tried a lot of the paths listed, but every time I get this message repeated:

Either you specified an unqualified symbol, or your debugger * doesn't have full symbol information. Unqualified symbol resolution is turned off by default. Please either specify a fully qualified symbol module!symbolname, or enable resolution of unqualified symbols by typing ".symopt- 100". Note that enabling unqualified symbol resolution with network symbol server shares in the symbol path may cause the debugger to appear to hang for long periods of time when an incorrect symbol name is typed or the network symbol server is down. For some commands to work properly, your symbol path must point to .pdb files that have full type information. Certain .pdb files (such as the public OS symbols) do not contain the required information. Contact the group that provided you with these symbols if you need this command to work. * Type referenced: nt!_KPRCB

This leads me to the conclusion that I did not put the correct symbol path. I would appreciate any advice on which to choose or what else to do. I'm not using a separate system and I want to use the Microsoft server.


回答1:


You should make sure your have an Internet connection, then do a

.symfix
.reload /f
!analyze -v

and check if the problems are gone. If not, it might happen that those symbols are simply not present.

If the problem is not gone, notify Andy Luhrs @aluhrs13 about the issue, make sure you include the relevant information. Potentially related: missing win32k.sys




回答2:


windbg has a workspace concept and when you load a dump,th workspace is created for that.To avoid asking for setting symbol for everytime,please do the following

  1. Lanuch windbg
  2. Do not open any dump
  3. Go to the Symbol Settings an set a path like this
  4. On the file menu and cick "Save Workspace"
  5. Close windbg

next time onwards,you do not have to set the symbol path for any dumps you open.



来源:https://stackoverflow.com/questions/45002682/symbol-path-for-windbg

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!