官网下载源码.
最新的是insight-6.8-1
作者:帅得不敢出门 群31843264 欢迎c/c++/linuxer前来灌水 转载请保留此信息
tar -xvf insight-6.8-1.tar.bz2
cd insight-6.8-1/
./configure
make
出现错误:
cc1: warnings being treated as errors
cp-name-parser.y: In function ‘cp_comp_to_string’:
cp-name-parser.y:1980:20: error: comparison between ‘enum demangle_component_type’ and ‘enum ’
cp-name-parser.y:1985:25: error: comparison between ‘enum demangle_component_type’ and ‘enum ’
vi gdb/cp-name-parser.y +1980
== 后面加上(enum demangle_component_type)
- if (result->type == (enum demangle_component_type)GLOBAL_DESTRUCTORS)
-
{
-
result = d_left (result);
-
prefix = "global destructors keyed to ";
-
}
-
else if (result->type == (enum demangle_component_type)GLOBAL_CONSTRUCTORS)
-
{
-
result = d_left (result);
-
prefix = "global constructors keyed to ";
-
}
make
出错:
cc1: warnings being treated as errors
ada-lang.c: In function ‘ada_attribute_name’:
ada-lang.c:7686:9: error: comparison between ‘enum exp_opcode’ and ‘enum ada_operator’
ada-lang.c: In function ‘assign_component’:
ada-lang.c:8186:30: error: comparison between ‘enum exp_opcode’ and ‘enum ada_operator’
ada-lang.c: In function ‘aggregate_assign_from_choices’:
ada-lang.c:8341:14: error: comparison between ‘enum exp_opcode’ and ‘enum ada_operator’
ada-lang.c: In function ‘ada_evaluate_subexp’:
ada-lang.c:8540:34: error: comparison between ‘enum exp_opcode’ and ‘enum ada_operator’
ada-lang.c:9099:32: error: comparison between ‘enum exp_opcode’ and ‘enum ada_operator’
vi gdb/ada-lang.c +7686
n前面加上(int) 强制转换成int
if ((int)n >= OP_ATR_FIRST && (int)n <= (int) OP_ATR_VAL)
其他几行的错误也是以此类推,加(int)
make
通过
sudo make install
which insight 得到
/usr/local/bin/insight
阅读(2752) | 评论(1) | 转发(0) |