[zz]如何安装并使用Windows Symbol File

本文介绍如何安装和配置WindowsSymbolFile,包括下载WindowsSymbolPackage及DebuggingToolsforWindows,设置环境变量_NT_SYMBOL_PATH,以及更新第三方调试工具。

[zz]如何安装并使用Windows Symbol File

1. 下载符合你所运行的Windows版本的Windows Symbol Package:http://www.microsoft.com/whdc/devtools/debugging/symbolpkg.mspx
安 装路径随便你选,我一般就是默认的路径:C:/Windows/Symbols。当然这个东东不装也可以,不过我推荐安装,因为把所有的Symbol File都从Server上下载下来还是蛮花时间的,有了这个东东,大部分的Symbol File都可以直接在本地找到。

2. 安装最新版的Debugging Tools for Windows,下载地址如下:http://www.microsoft.com/whdc/devtools/debugging/default.mspx
这 一步很重要,因为最近微软对WinDBG的更新非常频繁,即使你不用WinDBG,我们也需要WinDBG安装包里的两个文件(dbghelp.dll和 symsrv.dll)来更新其他调试工具(譬如IDA和SoftICE)所附带的这两个文件,否则极易出现无法从微软Symbol Server上正确下载最新Symbol File的情况。

3. 添加环境变量_NT_SYMBOL_PATH,设定其值如下(当然如果你的Symbol Package不是安装在C:/Windows/Symbols目录下,请自行修改):
C:/WINDOWS/Symbols/16bit;C:/WINDOWS/Symbols/acm;C:/WINDOWS/Symbol/ax;
C:/WINDOWS/Symbols/cnv;C:/WINDOWS/Symbols/com;C:/WINDOWS/Symbols/cpl;
C:/WINDOWS/Symbols/dic;C:/WINDOWS/Symbols/dll;C:/WINDOWS/Symbols/drv;
C:/WINDOWS/Symbols/ds;C:/WINDOWS/Symbols/exe;C:/WINDOWS/Symbols/iec;
C:/WINDOWS/Symbols/ime;C:/WINDOWS/Symbols/ocx;C:/WINDOWS/Symbols/scr;
C:/WINDOWS/Symbols/sys;C:/WINDOWS/Symbols/tpl;C:/WINDOWS/Symbols/tsp;
C:/WINDOWS/Symbols/wpc;symsrv*symsrv.dll*C:/symserver*http://msdl.microsoft.com/download/symbols
这 里最主要的是最后一个路径:symsrv*symsrv.dll*C:/symserver*http: //msdl.microsoft.com/download/symbols,它表示如果在之前的路径,以及C:/symserver目录下都找不到所 需要的Symbol File,就从微软的Symbol Server上下载之,并把下载下来的Symbol File保存到C:/symserver目录下(我用这个目录是为了和DriverStudio中附带的一个Symbol Retriever工具保持一致。

4.用Debugging Tools for Windows安装目录下的dbghelp.dll和symsrv.dll文件覆盖第三方调试工具中所自带的这两个文件——如果有的话,譬如IDA, SoftICE,BoundsChecker,等等。确保这些调试工具中的这两个dll是最新版的。

现在可以测试一下了,打开Symbol Retriever,随便添加一个dll,点击按钮Get Symbols,如果一切正常,稍后会弹出一个协议对话框,确认后过一会儿就可以看见这个文件的status变成Done,我们可以在C:/ symserver/ntdll.pdb目录下找到ntdll.pdb,这就是我们想要的Symbol File。

 

 

ps:Symbol Retriever是softice里自带的一个软件。

2007-12-21 10:41 ps: 在看雪翻到下载地址了:

ftp://ftp.compuware.com/pub/driverstudio/outgoing/utility/SymRetriever.zip

地址来源文章:http://bbs.pediy.com/showthread.php?t=8063&highlight=Symbol+Retriever

flac3d>model deterministic on flac3d>model precision 6 flac3d>model random 10000 flac3d>project new flac3d>model deterministic on flac3d>model precision 6 flac3d>model random 10000 flac3d>model new flac3d>model deterministic on flac3d>model precision 6 flac3d>model random 10000 flac3d>model large-strain off *** Unused extra parameter 2 (large-strain) found on command line. While processing line 3 of file GUI Console. flac3d>model new flac3d>model deterministic on flac3d>model precision 6 flac3d>model random 10000 flac3d>zone create cylindrical-brick ^ point 0 (0,0,0) ^ point 1 (0.05,0,0) ^ point 2 (0,0.10,0) ^ point 3 (0,0,0.05) ^ size 12 10 12 *** Bad conversion of parameter number 3 (cylindrical-brick). Expected tokens: Keywords: brick cylinder cylindrical-intersection cylindrical-shell degenerate-brick pyramid radial-brick radial-cylinder radial-tunnel tetrahedron tunnel-intersection uniform-wedge wedge While processing line 5 of file GUI Console. flac3d>model new flac3d>model deterministic on flac3d>model precision 6 flac3d>model random 10000 flac3d>zone create cylinder point 0 (0,0,0) point 1 (0,0.1,0) point 2 (0.05,0,0) size 12 10 12 dimension 1.0 *** Unused extra parameter 23 (dimension) found on command line. While processing line 7 of file GUI Console. flac3d>zone create brick point 0 (0,0,0) point 1 (0.05,0,0) point 2 (0,0.1,0) point 3 (0,0,0.05) size 12 10 12 flac3d>zone delete range cylinder end-1 (0,-0.01,0) end-2 (0,0.11,0) radius 0.05 not --- Deleted 320 zones and 352 gridpoints. flac3d>zone cmodel assign mohr-coulomb zone property density 2500 young 1.12e10 poisson 0.22 cohesion 1.2e6 friction 50 tension 1.07e6 *** Unused extra parameter 5 (zone) found on command line. While processing line 10 of file GUI Console. flac3d>model new model title 'Uniaxial Compression Test' model large-strain off flac3d>model deterministic on flac3d>model precision 6 flac3d>model random 10000 *** Unused extra parameter 3 (model) found on command line. While processing line 11 of file GUI Console. flac3d>project new flac3d>model deterministic on flac3d>model precision 6 flac3d>model random 10000 flac3d>model new flac3d>model deterministic on flac3d>model precision 6 flac3d>model random 10000 flac3d>model title 'Uniaxial Compression Test' flac3d>model large-strain off *** Unused extra parameter 2 (large-strain) found on command line. While processing line 15 of file GUI Console. flac3d>zone create brick ^ point 0 (0, 0, 0) ^ point 1 (0.05, 0, 0) ^ point 2 (0, 0.10, 0) ^ point 3 (0, 0, 0.05) ^ size 12 10 12 *** Unused extra parameter 4 (^) found on command line. While processing line 16 of file GUI Console. flac3d>model new flac3d>model deterministic on flac3d>model precision 6 flac3d>model random 10000 flac3d>model title 'Uniaxial Compression Test' flac3d>zone create brick point 0 (0,0,0) point 1 (0.05,0,0) point 2 (0,0.10,0) point 3 (0,0,0.05) size 12 10 12 flac3d>zone delete range cylinder end-1 (0,-0.01,0) end-2 (0,0.11,0) radius 0.05 not --- Deleted 320 zones and 352 gridpoints. flac3d>zone cmodel assign mohr-coulomb flac3d>zone property density 2500 young 1.12e10 poisson 0.22 --- Property young set in 1120 zones using the mohr-coulomb model. --- Property poisson set in 1120 zones using the mohr-coulomb model. flac3d>zone property cohesion 1.2e6 friction 50 tension 1.07e6 --- Property cohesion set in 1120 zones using the mohr-coulomb model. --- Property friction set in 1120 zones using the mohr-coulomb model. --- Property tension set in 1120 zones using the mohr-coulomb model. flac3d>zone face apply velocity-x 0 velocity-z 0 range position-y 0 --- Apply conditions added to 706 gridpoints. *** Unused extra parameter 6 (velocity-z) found on command line. While processing line 24 of file GUI Console. flac3d>zone face apply velocity-x 0 range pos-y 0 --- 137 gridpoints with conflicting conditions had those conditions removed. --- Apply conditions added to 137 gridpoints. flac3d>zone face apply velocity-z 0 range pos-y 0 --- Apply conditions added to 137 gridpoints. flac3d>zone face apply velocity-x 0 range pos-y 0.1 --- 137 gridpoints with conflicting conditions had those conditions removed. --- Apply conditions added to 137 gridpoints. flac3d>zone face apply velocity-z 0 range pos-y 0.1 --- Apply conditions added to 137 gridpoints. flac3d>zone face apply vel-y -1e-5 range pos-y 0.1 --- Apply conditions added to 137 gridpoints. flac3d>zone face apply sxx -1e4 szz -1e4 range cyl end1 (0,0,0) end2 (0,0.1,0) rad 0.05 *** Bad conversion of parameter number 4 (sxx). Expected tokens: Keywords: acceleration acceleration-dip acceleration-local acceleration-normal acceleration-strike acceleration-x acceleration-y acceleration-z convection discharge flux free-field leakage pore-pressure quiet quiet-dip quiet-normal quiet-strike reaction reaction-dip reaction-local reaction-normal reaction-strike reaction-x reaction-y reaction-z stress-dip stress-normal stress-strike stress-xx stress-xy stress-xz stress-yy stress-yz stress-zz temperature velocity velocity-dip velocity-local velocity-normal velocity-strike velocity-x velocity-y velocity-z westergaard While processing line 30 of file GUI Console. flac3d>history interval 50 flac3d>history add uniaxial_axial disp y pos (0,0.05,0) *** Bad conversion of parameter number 3 (uniaxial_axial). Expected tokens: FISH Symbol Keywords: acceleration-rotational-x acceleration-rotational-y acceleration-rotational-z acceleration-x acceleration-y acceleration-z coupling-displacement coupling-displacement-normal coupling-displacement-shear coupling-stress coupling-stress-normal coupling-stress-shear coupling-yield coupling-yield-normal coupling-yield-shear creep dfn displacement-rotational-x displacement-rotational-y displacement-rotational-z displacement-x displacement-y displacement-z dynamic fish fluid force force-x force-y force-z grout-displacement grout-slip grout-stress interface mechanical moment moment-x moment-y moment-z name position-x position-y position-z resultant-mx resultant-mxy resultant-my resultant-nx resultant-nxy resultant-ny resultant-qx resultant-qy stress stress-intermediate stress-maximum stress-minimum stress-xx stress-xy stress-xz stress-yy stress-yz stress-zz thermal timestep velocity-rotational-x velocity-rotational-y velocity-rotational-z velocity-x velocity-y velocity-z yield-compression yield-tension zone While processing line 32 of file GUI Console. flac3d>history zone dis-y 0 0.05 0 --- Created history 1 *** Bad conversion of parameter number 4 (0). Expected tokens: Keywords: component gp gridpointid label log method null position rezone zoneid While processing line 33 of file GUI Console. flac3d>history zone dis-x 0.025 0.05 0 --- Created history 2 *** Bad conversion of parameter number 4 (0.025). Expected tokens: Keywords: component gp gridpointid label log method null position rezone zoneid While processing line 34 of file GUI Console. flac3d>history interval 5 flac3d>history add zone displacement-y position (0.025, 0.05, 0.025) --- Created history 3 flac3d>model step 500 Cycle Total Clock --------- ---------- ----------- 500 500 00:00:00:00 500 --- Global cycle limit of 500 met. --- Cycling ended at: 2026-01-06 17:40:28 flac3d>print "»ùÏß²âÊÔÍê³É¡£" *** Bad conversion of parameter number 2 ("基线测试完成。"). Expected tokens: FISH Symbol Keywords: all creep cycle-sequence directory domain dynamic factor-of-safety fish fluid fos fracture geometry globals group information key-information label limits mail mechanical memory module plugins principal range record scalar security serial series table tensor thermal trace vector version While processing line 38 of file GUI Console. flac3d>print "1" *** Bad conversion of parameter number 2 ("1"). Expected tokens: FISH Symbol Keywords: all creep cycle-sequence directory domain dynamic factor-of-safety fish fluid fos fracture geometry globals group information key-information label limits mail mechanical memory module plugins principal range record scalar security serial series table tensor thermal trace vector version While processing line 39 of file GUI Console. flac3d>model step 500 Cycle Total Clock --------- ---------- ----------- 500 1000 00:00:00:00 500 --- Global cycle limit of 500 met. --- Cycling ended at: 2026-01-06 17:41:20 flac3d>plot create flac3d>plot item add zone *** Bad conversion of parameter number 3 (add). Expected tokens: Keywords: create delete modify While processing line 42 of file GUI Console. flac3d>plot item add contour displacement-y *** Bad conversion of parameter number 3 (add). Expected tokens: Keywords: create delete modify While processing line 43 of file GUI Console. flac3d>plot create view geometry *** Unused extra parameter 3 (view) found on command line. While processing line 44 of file GUI Console. flac3d>plot create myview *** Unused extra parameter 3 (myview) found on command line. While processing line 45 of file GUI Console. flac3d>plot create 'GeometryView' flac3d>plot 'GeometryView' item add model *** Bad conversion of parameter number 4 (add). Expected tokens: Keywords: create delete modify While processing line 47 of file GUI Console.根据我这段代码,其中有报错,生成完全正确的代码
最新发布
01-07
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值