Exetools  

Go Back   Exetools > General > General Discussion

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-26-2004, 16:09
TQN TQN is offline
VIP
 
Join Date: Apr 2003
Location: Vietnam
Posts: 358
Rept. Given: 143
Rept. Rcvd 24 Times in 13 Posts
Thanks Given: 196
Thanks Rcvd at 168 Times in 51 Posts
TQN Reputation: 24
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
Attached Files
File Type: rar symsrv.part1.rar (488.3 KB, 106 views)
File Type: rar symsrv.part2.rar (488.3 KB, 85 views)
File Type: rar symsrv.part3.rar (68.5 KB, 55 views)
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


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


All times are GMT +8. The time now is 02:33.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )