首页 > 其他分享 >设置_NT_SYMBOL_PATH(windbg)

设置_NT_SYMBOL_PATH(windbg)

时间:2023-06-09 16:35:04浏览次数:33  
标签:msdl http com SYMBOL symbols download PATH NT CPU


Use the Microsoft Symbol Server to obtain debug symbol files

//z 2011-09-04 16:52:[email protected] 转载请注明出处
debug tools for windows,windbg

1. 在windbg中可以使用如下命令:

.sympath SRV*f:\localsymbols*http://msdl.microsoft.com/download/symbols

设置_NT_SYMBOL_PATH
F:\Symbol;symsrv*symsrv.dll*F:\Symbol*http://msdl.microsoft.com/download/symbols

2.如是临时使用:

Set _NT_SYMBOL_PATH = symsrv*symsrv.dll*f:\localsymbols*http://msdl.microsoft.com/download/symbols

3. 多个路径
fsymchk /r c:\windows\system32 /s SRV*c:\symbols\*http://msdl.microsoft.com/download/symbols:

//z 2011-09-04 16:52:[email protected] 转载请注明出处

4. 迭代得到目录下的所有文件的symbol
symchk /r c:\windows\system32 /s SRV*c:\symbols\*http://msdl.microsoft.com/download/symbols


  • /r c:\windows\system32 finds all symbols for files in the System32 folder and any subfolders.
  • /s SRV*c:\symbols*http://msdl.microsoft.com/download/symbols specifies the symbol path to use for symbol resolution. In this case,c:\symbols is the local folder where the symbols will be copied from the symbol server.


//z 2011-09-04 16:52:[email protected] 转载请注明出处




Pseudoregisters

Pseudoregister

Description

@ERR

Last error value; the same value returned by the GetLastError() API function

@TIB

Thread information block for the current thread; necessary because the debugger doesn't handle the "FS:0" format

@CLK

Undocumented clock register; usable only in the Watch window

@EAX, @EBX, @ECX, @EDX, @ESI, @EDI, @EIP, @ESP, @EBP, @EFL

Intel CPU registers

@CS, @DS, @ES, @SS, @FS, @GS

Intel CPU segment registers

@ST0, @ST1, @ST2, @ST3, @ST4, @ST5, @ST6, @ST7

Intel CPU floating-point registers


@ERR


 最后错误值; 和GetLastError() API 函数一致


 


@TIB


 当前线程信息; 在调试器无法处理”FS:0”格式的时候是必要的


 


@CLK


 未列入文档的寄存器; 只是在Watch窗口适用


 


@EAX, @EBX, @ECX, @EDX, @ESI, @EDI, @EIP, @ESP, @EBP, @EFL


 Intel CPU 寄存器


 


@CS, @DS, @ES, @SS, @FS, @GS


 Intel CPU 段寄存器


 


@ST0, @ST1, @ST2, @ST3, @ST4, @ST5, @ST6, @ST7


 Intel CPU 浮点寄存器


 


其中@TIB很有用,可以用在多线程调试的时候作为断点的条件变量.这样就可以只观察一个线程的执行情况.


另一个常用的@err,hr




(X64 Debugging With Pseudo Variables And Format Specifiers)


Pseudo Variable     Description


$handles     Number of handles to kernel objects


$vframe     Current stack frame address


$TID     Current thread identifier


$registername     Contents of specified register


$clk     Time in clock cycles


$user     Process and thread token information




Specifier     Description


D    Decimal


U    Unsigned decimal


O    Octal


X    Hexadecimal


F    Floating point


E    Scientific notation


C    Character


S    Character string


Su    Unicode string


s8    UTF-8 string


Hr    HRESULT or Win32 error code


wc    Windows class


wm    Windows message


!    Raw format


标签:msdl,http,com,SYMBOL,symbols,download,PATH,NT,CPU
From: https://blog.51cto.com/u_16156420/6449066

相关文章

  • 不记录最近文档(recent document)
    1.不记录最近文档WindowsRegistryEditorVersion5.00[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]"NoRecentDocsHistory"=dword:000000012.笔记本cpu功耗性价比anultraportableatnetbook......
  • ubuntu find whereis locate find
     which只能寻找执行文件,并在PATH变量里面寻找。whereis从linux文件数据库(/var/lib/slocate/slocate.db)寻找,所以有可能找到刚刚删除,或者没有发现新建的文件。locate同上,不过文件名是部分匹配。find是直接在硬盘上搜寻,功能强大,但耗硬盘,一般不要用。......
  • 离线使用 ubuntu下的dict
    离线使用ubuntu下的dict首先sudoapt-getinstalldict      //安装客户端sudoapt-getinstalldictd     //安装服务器端安装辞典sudoapt-getinstalldict-wn    //WorldNet英英字典这个我推荐其他辞典英英dict-gcide英汉dict-xdict,dict......
  • Java并发编程 interrupt()方法
    interrupt()用法打断正常运行的线程interrrupt()方法可以用来打断正在运行的线程,也可以打断sleep()、wait()、join()情况下的线程,但是这些情况下被打断线程的打断标记不同。importlombok.extern.slf4j.Slf4j;importjava.util.concurrent.TimeUnit;@Slf4jpublicclassIn......
  • Linux (CentOS) 安装Apache图文详解
    目录查看是否已安装apache,以及版本号如何卸载旧版本apache安装Apache(yum安装)查看Apache工作状态以及如何启动它Apache各文件目录的作用https://blog.csdn.net/qq_20388417/article/details/105176612......
  • element的el-radio垂直排列
    element里面的el-radio是水平排列的,在项目里面需要竖直排列的效果,我给每个el-radio都加了块级作用域没生效,最后的解决方法是://单选框:deep(.el-radio){display:block;} ......
  • 抗锯齿下采样(Anti-aliasing/down-sampling)-python-numpy 实现
    抗锯齿下采样(Anti-aliasing/down-sampling)-python-numpy实现这篇内容会涉及:卷积和抗锯齿下采样。代码请访问:https://github.com/LonglongaaaGo/ComputerVision问题描述如果直接对图片进行上采样,比如说用nearest线性插值,我们能够发现上采样的图片会有很多锯齿,如上篇从Nearest插值......
  • 基于Monte Carlo 的策略评估
    基于MonteCarlo的策略评估在强化学习中,MonteCarlo是一种被广泛用到的方法。这种方法主要是从经验experience中拟合数值,本质上就是从不同的采样中获得结果,然后将其平均。由于最后当采样的数量达到一定的数量级后,这种方法可以很好地拟合我们想要的函数。这里有一个很有意思的de......
  • RuntimeError: Error building extension ‘fused‘&FAILED: fused_bias_act_kernel.c
    RuntimeError:Errorbuildingextension‘fused’&FAILED:fused_bias_act_kernel.cuda.o&ninja:buildstopped:subcommandfailed.问题如下:RuntimeError:Errorbuildingextension‘fused’:[1/3]/usr/local/cuda/bin/nvcc-DTORCH_EXTENSION_NAME=fused-DTORCH_......
  • Ubuntu的初始化
                       1.查看系统中已安装的软件包Ubuntu使用的是dpkg命令管理软件包,在终端输入dpkg-l|more命令确认安装包的信息。结果如下可供参考,其中只截取了一小部分。Ubuntu中经常进行故障修复和功能完善,更新系统需要用到管理员权限。它......