Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 05-27-2004, 18:32
dj-siba's Avatar
dj-siba dj-siba is offline
Musician Member
 
Join Date: Jun 2003
Location: Outside the dot
Posts: 324
Rept. Given: 34
Rept. Rcvd 43 Times in 21 Posts
Thanks Given: 57
Thanks Rcvd at 160 Times in 43 Posts
dj-siba Reputation: 42
a piece of cake!

Thanks for sharing

Regards
Reply With Quote
  #3  
Old 05-27-2004, 20:23
pmliming
 
Posts: n/a
I use driverstudio 3.1 under win2003. But I have never failed on getting symbles using symble retriever. What is your driverstudio and OS version?
Reply With Quote
  #4  
Old 05-28-2004, 11:15
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
I use Symbol Retrieve ver 1.0, DriverStudio 2.7 (I don't have the need to update to DS 3.x). At work, my OS is Win2000 Server, use a HTTP proxy. At home, my OS is WinXP Pro, use Modem.
Regards
Reply With Quote
  #5  
Old 06-01-2004, 11:40
ionescu007
 
Posts: n/a
I'm using 3.2 and it works fine...perhaps it's worth the upgrade, Microsoft is known to change their internal protocol often.

Best regards,
Alex Ionescu
http://www.relsoft.net
Reply With Quote
  #6  
Old 01-04-2005, 22:30
infern0 infern0 is offline
Friend
 
Join Date: Dec 2004
Posts: 72
Rept. Given: 4
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 2 Times in 2 Posts
infern0 Reputation: 0
by the way - full set of debug symbols can be found on microsoft's cd with winXP SP2. And for free
Reply With Quote
  #7  
Old 01-06-2005, 03:52
Cobi Cobi is offline
Friend
 
Join Date: Sep 2004
Location: Germany
Posts: 55
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 1 Time in 1 Post
Cobi Reputation: 0
And you can order it here
for free
Reply With Quote
Reply


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 18:06.


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