gpt4 book ai didi

c++ - WinDbg !heap 命令由于缺少符号而无法正常工作

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:20:39 25 4
gpt4 key购买 nike

我正在尝试使用 WinDbg 调试我的具有 C++ 非托管内存分配的 .NET 应用程序。

当我尝试运行 !heap 命令时,我收到以下错误消息:

0:022> !heap
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Windows\system32\KERNEL32.dll -
*************************************************************************
*** ***
*** ***
*** Your debugger is not using the correct symbols ***
*** ***
*** In order for this command to work properly, your symbol path ***
*** must point to .pdb files that have full type information. ***
*** ***
*** Certain .pdb files (such as the public OS symbols) do not ***
*** contain the required information. Contact the group that ***
*** provided you with these symbols if you need this command to ***
*** work. ***
*** ***
*** Type referenced: ntdll!_HEAP_ENTRY ***
*** ***
*************************************************************************
Invalid type information

我该如何修复这个错误?

最佳答案

使用以下命令修复符号路径:

.symfix
.reload

关于c++ - WinDbg !heap 命令由于缺少符号而无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6941862/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com