Re: WinDbg找不到DLL导出的几个函数

WinDbg

WinDbg找不到DLL导出的几个函数


guozf 2009-08-26, 15:28 下午
发现关于WinDbg的一个问题如下:

1。 设置环境变量_NT_SYMBOL_PATH=SRV*C:\MyLocalSymbols*http://msdl.microsoft.com/download/symbols
       将WinDbg attach到一个process,之后使用命令
         1。 x User32!GetDC
         2。 x User32!GetDCEx
      系统下载并找到user32.pdb, 发现找不到几个dll导出的函数GetDC和GetDCEx,其他的都可以找到

2。未设置环境变量_NT_SYMBOL_PATH
         将WinDbg attach到一个process,之后使用命令
         1。 x User32!GetDC
         2。 x User32!GetDCEx
      WinDbg从Dll的export table找到这些符号包括GetDC和GetDCEx

我现在想在 User32!GetDC和User32!GetDCEx设置断点(需要设置环境变量_NT_SYMBOL_PATH), 所以有什么办法可以在分析User32这个DLL的时候可以找到这些export table里导出的全部函数呢?

是否下面这个命令啊?但是不知道应该设置哪个flag
.symopt (Set Symbol Options)dd {margin-bottom:0em; margin-left:1.9em; }.divclass {behavior:url(#default#savehistory);}

.symopt (Set Symbol Options)

The .symopt command sets or displays the symbol options.

Syntax

.symopt+ Flags 
.symopt- Flags 
.symopt 



Re: WinDbg找不到DLL导出的几个函数


johnl 2009-08-28, 23:34 下午
0:000> x user32!*getdc*
773ad1a5 user32!xxxBNGetDC =
7738a649 user32!NtUserGetDCEx =
7739c621 user32!NtUserGetDC =
773c4011 user32!LBGetDC =

bp user32!NtUserGetDC

Powered by Community Server Powered by CnForums.Net