Changes between Version 16 and Version 17 of jazz/09-02-01


Ignore:
Timestamp:
Feb 2, 2009, 1:30:57 AM (16 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/09-02-01

    v16 v17  
    363363(gdb) target remote 127.0.0.1:1234
    364364}}}
     365 * 在 DEBUG 的時候偶爾會看到 <value optimized out>,但是該怎麼去掉呢??
     366   * [參考] http://www.cs.utk.edu/~vose/c-stuff/onlinedocs/gdb_7.html
     367{{{
     368The values of arguments that were not saved in their stack frames are shown as `<value optimized out>'.
     369
     370If you need to display the values of such optimized-out arguments, either deduce that from other variables whose values depend on the one you are interested in, or recompile without optimizations.
     371}}}
     372   * [作法] 在 configure 的時候加上 CFLAGS
     373     * 註: 因為如果有設定 CFLAGS 的話,在 configure 裡是會直接採用我們提供的 CFLAGS。因此縱使加上 --enable-debug 也沒有用,configure 不會幫你加 -g 進去。
     374{{{
     375root@intrepid:~/jfbterm-0.4.7-dev# CFLAGS="-g -O0" ./configure
     376}}}