每一个“丑得人神共愤”的泡妞高 手都有一颗坚忍的心,这证明了人类 在绝境中毫不妥协的求生精神,反正丑都丑了,索性放开手脚大干一场,这就叫“无产阶级失去的是锁链,得到的是全世界”
2013年(130)
分类: LINUX
2013-09-29 11:54:14
when linux gdb debug, print a variable, such as i, by command p i;
The gdb output value optimized out.
The solution for the problem is off the compile optimation option -Ox, x note digital, such 2, 3, 4 etc
The better way is that changing -Ox to -O0.
The -O0 denotes there is no optimization. It will avoid gdb mislead source code line issue.