首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C语言 >

为什么windbg无法看结构体内容?该怎么解决

2012-04-02 
为什么windbg无法看结构体内容?typedef struct _TEST {int tchar test[10]int o} TTESTstruct _TEST1

为什么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.

热点排行