WinDbg从符号中获取所有函数的地址

问题描述 投票:2回答:1

执行命令x ShittyProject!*我得到了这样的输出

<MSIL:00250014         > ShittyProject!Main (void)
<MSIL:00250098         > ShittyProject!.ctor (void)
<MSIL:00250037         > ShittyProject!.ctor (void)
<MSIL:002500ed         > ShittyProject!get_Default (void)
<MSIL:002500a1         > ShittyProject!get_ResourceManager (void)
<MSIL:002500f8         > ShittyProject!.cctor (void)
<MSIL:0025002a         > ShittyProject!Foo (void)
<MSIL:0025006e         > ShittyProject!InitializeComponent (void)
<MSIL:00250000         > ShittyProject!InitializeComponent (void)
<MSIL:002500da         > ShittyProject!get_Culture (void)
<MSIL:002500e5         > ShittyProject!set_Culture (void)

如果我理解正确的MSIL:*,那只是pdb文件中功能的地址?是否可以通过某种方式获取函数的地址以在其上放置断点?

c# windbg
1个回答
0
投票

托管代码与本机代码不同。要以“本机方式”(bp)设置断点,您将需要等到该方法进行JIT编译后再使用该方法的本机地址。

© www.soinside.com 2019 - 2024. All rights reserved.