(gdb) print sk_unix
$3 = <value optimized out>
Бороться с ней так (добавляем volatile для отключения оптимизаций):
volatile int sk_unix = 0;
(с) http://stackoverflow.com/questions/1345338/c-gdb-behavior-value-optimized-out
(gdb) print sk_unix
$3 = <value optimized out>
volatile int sk_unix = 0;
No comments :
Post a Comment
Note: only a member of this blog may post a comment.