gpt4 book ai didi

windbg - 使用 WinDbg 转储 STL 字符串

转载 作者:行者123 更新时间:2023-12-02 06:08:10 25 4
gpt4 key购买 nike

我不能再使用 WinDbg 转储 STL 字符串 - 我以前可以使用以下命令转储 STL 字符串:dt -r (MSVCP90!string) address,或者对于宽字符串, dt -r (MSVCP90!wstring) 地址。不幸的是,我不能再这样做了——我有一个符号路径,当我列出模块时,它显示为 MSVCP90 加载了符号:

74110000 7419e000 MSVCP90(pdb 符号)x:\symbols\msvcp90.i386.pdb\A23D796E66BB430B891568A6EF0C750C1\msvcp90.i386.pdb

当我执行命令时,我得到的输出是这样的:

0:025> dt -r (MSVCP90!string)
*************************************************************************
*** ***
*** ***
*** 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: MSVCP90!string ***
*** ***
*************************************************************************
Symbol MSVCP90!string not found.

我的符号路径是这样设置的:

0:025> .sympath
Symbol search path is: srv*X:\Symbols*http://msdl.microsoft.com/download/symbols
Expanded Symbol search path is: srv*x:\symbols*http://msdl.microsoft.com/download/symbols

我找到了 SDbgExt 扩展,但从我读到的内容来看,它是针对 7.0 版本的运行时 - 这是 9.0。

有人知道为什么此功能停止工作吗?我真的离不开它!

谢谢!

编辑:为了更好地衡量,我还尝试启用嘈杂符号模式。我得到了这个输出:

0:025> .reload /f MSVCP90.dll
DBGHELP: MSVCP90 - public symbols
x:\symbols\msvcp90.i386.pdb\A23D796E66BB430B891568A6EF0C750C1\msvcp90.i386.pdb

所以看起来我的符号确实没问题。

最佳答案

你也可以使用

!stl <name>

来自文档:

The !stl extension displays some of the known Standard Template Library (STL) templates. This extension currently supports STL templates of the following types: string, wstring, vector<string>, vector<wstring>, list<string>, list<wstring>, and pointers to any of the preceding types.

关于windbg - 使用 WinDbg 转储 STL 字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6600068/

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