使用SymChk获取符号文件
2013-06-12 22:53
183 查看
方式一:类似下面的,递归式获取某一目录下所有文件的符号文件:(windbg的帮助文件及网络上都能查到)
要使用 SymChk.exe 实用程序下载 Windows\System32 文件夹中所有组件的符号文件,请使用以下命令行命令:
symchk /r c:\windows\system32 /s SRV*c:\symbols\*http://msdl.microsoft.com/download/symbols
在此示例中:
“/r c:\windows\system32”查找 System32 文件夹和所有子文件夹中的所有符号文件。
“/s SRV*c:*http://msdl.microsoft.com/download/symbols”指定用于符号解析的符号路径。在此例中,“c:\symbols”是将在其中从符号服务器复制符号的本地文件夹。
方式二:使用Manifest文件,这个少有人提及,References: http://msdn.microsoft.com/en-us/library/windows/hardware/ff560061(v=vs.85).aspx
Using a Manifest File with SymChk
n some cases, you might need to retrieve symbols for files that are on an isolated computer; that is, a computer that is either not on any network or is on a network that has no symbol store. In that situation, you can use the following procedure to retrieve
symbols.
Run SymChk with the /om parameter to create a manifest file that describes the files for which you want to retrieve symbols.
Move the manifest file to a network that has a symbol store.
Run SymChk with /im parameter to retrieve symbols for the files described int the manifest file.
Move the symbol files back to the isolated computer.
Suppose yourApp.exe is running on an isolated computer. The following command creates a manifest file that describes all the symbols needed to debug the yourApp.exe pocess.
Now assume you have moved the manifest file to a different computer that is on a network that has access to a symbol store. The following command retrieves the symbols described in the manifest file and places them in the mySymbols folder.
Now you can move the symbols to the isolated computer and use them for debugging.
要使用 SymChk.exe 实用程序下载 Windows\System32 文件夹中所有组件的符号文件,请使用以下命令行命令:
symchk /r c:\windows\system32 /s SRV*c:\symbols\*http://msdl.microsoft.com/download/symbols
在此示例中:
“/r c:\windows\system32”查找 System32 文件夹和所有子文件夹中的所有符号文件。
“/s SRV*c:*http://msdl.microsoft.com/download/symbols”指定用于符号解析的符号路径。在此例中,“c:\symbols”是将在其中从符号服务器复制符号的本地文件夹。
方式二:使用Manifest文件,这个少有人提及,References: http://msdn.microsoft.com/en-us/library/windows/hardware/ff560061(v=vs.85).aspx
Using a Manifest File with SymChk
n some cases, you might need to retrieve symbols for files that are on an isolated computer; that is, a computer that is either not on any network or is on a network that has no symbol store. In that situation, you can use the following procedure to retrieve
symbols.
Run SymChk with the /om parameter to create a manifest file that describes the files for which you want to retrieve symbols.
Move the manifest file to a network that has a symbol store.
Run SymChk with /im parameter to retrieve symbols for the files described int the manifest file.
Move the symbol files back to the isolated computer.
Example
Suppose yourApp.exe is running on an isolated computer. The following command creates a manifest file that describes all the symbols needed to debug the yourApp.exe pocess.C:\>SymChk /om c:\Manifest\man.txt /ie yourApp.exe SYMCHK: FAILED files = 0 SYMCHK: PASSED + IGNORED files = 28
Now assume you have moved the manifest file to a different computer that is on a network that has access to a symbol store. The following command retrieves the symbols described in the manifest file and places them in the mySymbols folder.
C:\>SymChk /im c:\FolderOnOtherComputer\man.txt /s srv*c:\mysymbols*\\aServer\symbols SYMCHK: myApp.exe ERROR - Unable to download file. Error reported was 2 . . . SYMCHK: FAILED files = 28 SYMCHK: PASSED + IGNORED files = 28
Now you can move the symbols to the isolated computer and use them for debugging.
相关文章推荐
- 使用 Microsoft Symbol Server 获取调试符号文件
- 使用 Microsoft Symbol Server 获取调试符号文件
- 使用 Microsoft Symbol Server 获取调试符号文件
- 使用nm命令获取可执行文件里的符号
- 使用 Microsoft Symbol Server 获取调试符号文件
- 使用Microsoft Symbol Server获取调试符号文件和DUMP文件具体分析方法
- symchk 获取符号文件(PDB)
- 使用 Microsoft Symbol Server 获取调试符号文件
- 使用 Microsoft Symbol Server 获取调试符号文件
- 使用 Microsoft Symbol Server获取调试符号文件
- MFC 使用CImage获取到屏幕截图,指定格式保存到文件
- 程序树Phylip进化树的使用,偏重于文件格式的获取
- 如何使用gcore工具获取一个core文件而不重启应用?
- C#获取文件(磁盘驱动器)的关联图标(使用API SHGetFileInfo)
- 使用Android内部的DownloadProvider下载文件,并获取cache权限
- 4.2 MyBatis_映射文件_insert_Oracle使用序列生成主键演示和获取非自增主键的值_selectKey
- 使用JCIFS获取远程共享文件
- 使用VBA从海量Excel文件中模糊获取数据并生成新表(附实例) - (四) 结合病人病例,批量汇总实例
- 背水一战 Windows 10 (101) - 应用间通信: 通过协议打开指定的 app 并传递数据以及获取返回数据, 将本 app 沙盒内的文件共享给其他 app 使用
- 使用 IconHandler 2.0 获取 文件图标