Platform SDK: Debugging and Error Handling
Symbol Paths
The library uses the symbol search path to locate debug symbols (.dbg file) for .dll, .exe, and .sys files by appending "\symbols" and "\dll" or "\exe" or "\sys" to the path. For example, the typical location of symbol files for .dll files is c:\mysymbols\symbols\dll. For .exe files, the location is c:\mysymbols\symbols\exe. To specify where the symbol handler will search disk directories for symbol files, call the SymSetSearchPath function. Alternatively, you can specify a symbol search path in the UserSearchPath parameter of the SymInitialize function. The UserSearchPath parameter in SymInitialize and the SearchPath parameter in SymSetSearchPath take a pointer to a null-terminated string that specifies a path, or series of paths separated by a semicolon. The symbol handler uses these paths to search for symbol files. If this parameter is specified as a non-null value, the symbol handler searches only the paths set by the application. If this parameter is NULL, the symbol handler first searches the current working directory of the application, then the system root directory (%windir%). If you set the _NT_SYMBOL_PATH or _NT_ALT_SYMBOL_PATH environment variable, the symbol handler searches for symbol files in the following order: The current working directory of the application.
The _NT_SYMBOL_PATH environment variable.
The _NT_ALT_SYMBOL_PATH environment variable.
To retrieve the search paths, call the SymGetSearchPath function.The search path for program database (.pdb) files is different than the path for debug (.dbg) files. The algorithm is determined by the functionality of the symbol library. By default, Microsoft Visual C/C++ creates Microsoft format symbols, strips them from the image, and places them in a separate .pdb file. Typically, the .pdb file will be located in the directory that contains the executable image. Visual C/C++ embeds the absolute path to the .pdb file in the executable image. If the symbol handler cannot find the .pdb file in that location or if the .pdb file was moved to another directory, the symbol handler will locate the .pdb file using the search path described for .dbg files.Platform SDK Release: August 2001 What did you think of this topic?
Let us know. Order a Platform SDK CD Online
(U.S/Canada) (International)
解决方案 »
- 读取二进制文件的问题,好奇怪的现象,100分!
- 为什么我在delete 指针之后,仍然起作用?小弟没有多少分,就少给些了。
- 同叙快崩溃了,帮他问问
- 如何在一个通用类里用ADO啊?
- 当鼠标按在滚动条的箭头上系统连续触发滚动条事件,如果屏蔽此功能并自己模拟触发这个事件?
- asp中使用com返回参数的简单问题~~!急急急,高分容易拿
- 一大早就来问个问题
- 怎么能在MFC中写入APIA函数?
- 如何消除闪烁, 请高手赐教!
- 在资源 Icon 中添加了一个 ico 图标,而用 FindResource 显示找不到,请问如何解决?
- 请问:在FormView里面如何使用CPropertySheet?并且如何使ProperySheet注满FormView页面?
- 请问:学SDK有什么好的书?
不知道用哪个函数。SymGetSymFormAddr只能得到函数名!!!
靠,真的没办法吗?有没有MS的人将内部MSPDB60.DLL的函数接口资料公开
一下?----估计MS中国也没这么核心的资料吧!只好放弃。