Visual Studio 2017开启Control Flow Guard调试时guard_dispatch.asm未找到问题的解决求助
Visual Studio 2017开启Control Flow Guard调试时guard_dispatch.asm未找到问题的解决求助
我在Visual Studio 2017里给C++程序开启了Control Flow Guard选项(/guard:cf),用调试模式编译后,每次用调试器单步进入函数时,VS都会弹出找不到guard_dispatch.asm源文件的页面,这实在太烦人了,想把这个页面去掉。
我想问问大家,哪里能找到或者下载guard_dispatch.asm的源码?我在VC的这个路径下:C:\dev\vs150\VC\Tools\MSVC\14.16.27023\crt\src\i386,找到了memcpy.asm这类汇编文件,但就是没看到guard_dispatch.asm。
看调用栈的话,调试器会停在_guard_dispatch_icall_nop()函数这里。我试过定义natstepfilter规则来跳过这个函数,但没起作用,规则内容如下:
<?xml version="1.0" encoding="utf-8"?> <StepFilter xmlns="http://schemas.microsoft.com/vstudio/debugger/natstepfilter/2010"> <Function><Name>_guard_dispatch_icall_nop</Name><Action>NoStepInto</Action></Function> </StepFilter>
我还试过取消勾选调试选项里的「DEBUG / 选项 / 调试 / 常规 / 启用地址级调试 / 若源不可用则显示反汇编」,但也没效果。
有没有人知道怎么解决这个问题?
备注:内容来源于stack exchange,提问作者Daniel Laügt
相关产品推荐
相关产品推荐

