能力值:
( LV8,RANK:130 )
|
-
-
2 楼
!stl ...
|
能力值:
( LV2,RANK:10 )
|
-
-
3 楼
谢谢!
可是,我在使用时,碰到这样的错误:
0:000> !stl v TryToDumpAsVector(): Failed to g_ExtSymbols->GetFieldOffset( ModuleCollection, TypeIdCollection, FirstName, &ElementOffset ) 0x80070057 [line 983] Unrecognized type 'std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >' as an STL structure -- Defaulting to `dt -n (std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >) 0x12fef4` Console!std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > > +0x000 _Myproxy : 0x00394c60 std::_Container_proxy +0x004 _Myfirst : 0x00394d00 std::basic_string<char,std::char_traits<char>,std::allocator<char> > +0x008 _Mylast : 0x00394d38 std::basic_string<char,std::char_traits<char>,std::allocator<char> > +0x00c _Myend : 0x00394d38 std::basic_string<char,std::char_traits<char>,std::allocator<char> > +0x010 _Alval : std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >
其中,v是变量,类型为vector<string>
请问如何解决?
已经下载符号,XPSP3.
0:000> lm start end module name 00400000 00466000 Console C (private pdb symbols) D:\DengYC\Projects\love\Console\Console.pdb 7c800000 7c91e000 kernel32 (pdb symbols) d:\dengyc\symbols\kernel32.pdb\34560E80F5C54175B208848EF863C5BD2\kernel32.pdb 7c920000 7c9b3000 ntdll (pdb symbols) d:\dengyc\symbols\ntdll.pdb\1751003260CA42598C0FB326585000ED2\ntdll.pdb
|
能力值:
( LV2,RANK:10 )
|
-
-
4 楼
非常奇怪啊,用:!stl s对string,是可以正确打印的。
对std::pair也支持的很好。
就是vector不行。难道与编译器有关?我用的是VS2010beta1
|
能力值:
( LV2,RANK:10 )
|
-
-
5 楼
经过实验,确实是编译器的问题。
看来WinDbg还不支持VC10 beta1,使用VS2008SP1编译器后一切正常!
|
能力值:
( LV2,RANK:10 )
|
-
-
6 楼
!stl在那个扩展模块里啊?
0:000> !stl
No export stl found
|
|
|