为什么windbg无法看结构体内容?
typedef struct _TEST {
int t;
char test[10];
int o;
} TTEST;
struct _TEST1 {
int t;
char test[10];
int o;
};
int main(int argc, char* argv[])
{
TTEST tt = {10, 'a', 'b', '\0'};
struct _TEST1 tt1 = {20, 'a', 'b', '\0'};
return 0;
}
用dt TTEST tt或者dt tt都无法查看tt结构体内容,显示" < < <Unable to get typeinfo, error 1>>>"或者是"Symbol TTEST not found.",不知道什么原因,我的sympath是E:\test\test18\debug;C:\WINDOWS\Symbols\dll。
[解决办法]
1、On the Project menu, click Settings, and then click the Link tab.
2、Select the Debug category, and clear the Separate Types check box.
3、Rebuild all and try to debug.