gdb -O2

gdb -O2 will cause, when debugging, some variable can not be print,

we will see "optimized out"

 

dont use the -O2 option, every thing will be fine, but add O2 in makefile, will make the process run faster

 

posted @ 2015-03-20 20:01  孙永杰  阅读(469)  评论(0编辑  收藏  举报