Hello!
2013/4/6 冯斌 <fen...@jd.com>:
> hello all:
> 我用gdb调试nginx,在print 变量的时候 报错,如下:
>
> (gdb) p *slcf Unable to access variable "slcf"
> $2 = <variable optimized away by compiler>
>
> 编译运行环境,macos lion ,xcode 4.6
> ./configure --with-debug
>
> 怎么禁止编译器优化呢?有人知道吗?
>
./configure --with-cc-opt="-O0"
-agentzh