41.windbg-调试技巧(解决Type information missing error for)

来源:互联网 发布:淘宝店铺消失是假货吗 编辑:程序博客网 时间:2024/05/29 12:28

今天用vc6时,发现有些函数用x显示不了:

0:000> x ThisCall!Cat::*Type information missing error for Cat::Fun0

歪招:用bm直接下断点:

0:000> bm ThisCall!Cat::*  1: 00401090 @!"ThisCall!Cat::Func1"  2: 00401060 @!"ThisCall!Cat::Fun0"0:000> x ThisCall!Cat*Type information missing error for Cat::Func1Type information missing error for Cat::Fun0

或者直接ln或u

解决方式:

VC编译器把类型信息存放在VCx0.PDB中,VC6是放在VC60.PDB中,对于VC6自己有时也会找不到这个文件。
对于WinDBG,没有简单的方法来从VC60.pdb这样的符号文件来加载符号
所以需要修改工程的link,把

改成/PDBTYPE:CON即可!你也可以直接把这个删除,默认就是把调试信息集成到<project>.pdb中!
0:000> x ThisCall!Cat::*00401090 ThisCall!Cat::Func1 (MEAL)00401060 ThisCall!Cat::Fun0 (MEAL)