![]() |
|
#1
|
|||
|
|||
|
A tip to get Microsoft Debug Symbol
Hi all !
I saw many question about how to get debug symbol files from Microsoft Symbol Server at Woodmann forum, and have many answers, but seem too complex to follow. In the past, I have use Symbol Retriever tool of DriverStudio, but it alway failed, so I should find another way. Sometime, I use WinDbg to debug, and found it can download the request debug symbol files from Microsoft Symbol Server. After reading WinDbg document and using depends tool, I have collected a small package, can run standlone without need to install whole WinDbg free package (> 10 MB). I attached it here. The steps: 1. You only need to extract it to a folder, better than if its folder name is placed in the PATH enviroment. 2. You create two folder, C:\Symbols and C:\WinNT\Symbols (or C:\Windows\Symbols on your XP machine). In C:\Winxx\Symbols, you create some subdirectory, name exe, dll, sys, cpl, ... 3. Create a enviroment variable, name: "_NT_SYMBOL_PATH", with value:"%SYSTEMROOT%;%SYSTEMROOT%\system32;SRV*C:\Symbols*http://msdl.microsoft.com/download/symbols" 4. At here, you can begin to get debug symbol files by issue command: symchk.exe /v [dllpath/exepath...]. Ex: symchk /v c:\winnt\system32\ntoskrnl.exe or symchk /v c:\winnt\system32\ntdll.dll or symchk /v c:\winnt\system32\win32k.sys If your debug symbol file on your machine is not mach with exe/dll file, or did not exist, the symbol file will be downloaded from Microsoft Symbol server and placed in C:\Symbols directory, at [exe/dllname.pdb/dbg]/[signature]/. According to debug information in exe/dll file, the pdb file or dbg file or two files will be downloaded. And you can move .pdb/.dbg file to subdirectory %systemroot%\symbols\... Ex: ntoskrnl.pdb/.dbg to exe subdir ntdll.pdb/.dbg to dll subdir win32k.pdb/.dbg to sys subdir I use this way on my Win2000 server, use ADSL at work and WinXP Pro, use modem at home. All run well. Everytime I need a debug symbol file, I only need type: symchk /v .... Hope you will like and enjoy this method. Wait for your idea! Regards |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Game debug symbol collection | RiRye | General Discussion | 0 | 01-01-2022 13:37 |
| Binary compare, symbol convert | SiNTAX | General Discussion | 1 | 06-11-2010 01:42 |
| configure ollydbg110 to use microsoft's symbol server. | goldenegg | General Discussion | 3 | 12-10-2004 10:23 |