Changes between Version 8 and Version 9 of jazz/09-02-01


Ignore:
Timestamp:
Feb 1, 2009, 10:58:44 PM (15 years ago)
Author:
jazz
Comment:

--

Legend:

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

    v8 v9  
    1717    * '=' -- 增加 source window
    1818}}}
    19  * [參考] http://vision.twbbs.org/~letoh/blog/2007/04/13/cgdb-curses-gdb/
    20 {{{
    21 
     19 * [參考] [http://vision.twbbs.org/~letoh/blog/2007/04/13/cgdb-curses-gdb/ ~/.cgdb/cgdbrc 參考設定]
     20{{{
     21    set arrowstyle=highlight
     22    set autosourcereload
     23    set shortcut
     24    set tabstop=4
     25    set winsplit=top_big
     26    hi Statement cterm=bold ctermfg=6
     27    hi PreProc cterm=bold ctermfg=4
     28    hi IncSearch ctermfg=2
     29    hi LineHighlight cterm=bold ctermfg=3 ctermbg=4
    2230}}}
    2331 * [參考] http://blogkrogh.blogspot.com/2008/05/gdb-xxgdb-ddd.html
     
    120128color 15 : 3f, 3f
    121129}}}
    122  * 以下是在 Debian Etch 上執行結果,有趣的是 jfbterm 0.4.7-7 在 2.6.18 上執行,縱使有 cannot mmap(mmio) : Invalid argument 的錯誤訊息,但仍舊可以正常進入 jfbterm 的環境。
     130 * 以下是在 Debian Etch 上執行結果,有趣的是 jfbterm 0.4.7-7 在 2.6.18-4 上執行,縱使有 cannot mmap(mmio) : Invalid argument 的錯誤訊息,但仍舊可以正常進入 jfbterm 的環境。
    123131{{{
    124132root@etch:~# uname -a
     
    201209There is no member named ut_time.
    202210}}}
     211 * GDB 線上除錯練習
     212{{{
     213[tty1]
     214
     215root@etch:~# apt-get build-dep jfbterm
     216root@etch:~# apt-get source jfbterm
     217root@etch:~# apt-get install jfbterm
     218root@etch:~# cd jfbterm-0.4.7
     219root@etch:~/jfbterm-0.4.7# ./configure --enable-debug
     220root@etch:~/jfbterm-0.4.7# make
     221root@etch:~/jfbterm-0.4.7# ./jfbterm -f /etc/jfbterm.conf -e /root/test.sh
     222
     223[tty2]
     224
     225root@etch:~# gdb /root/jfbterm-0.4.7/jfbterm `pidof jfbterm`
     226GNU gdb 6.4.90-debian
     227Copyright (C) 2006 Free Software Foundation, Inc.
     228GDB is free software, covered by the GNU General Public License, and you are
     229welcome to change it and/or distribute copies of it under certain conditions.
     230Type "show copying" to see the conditions.
     231There is absolutely no warranty for GDB.  Type "show warranty" for details.
     232This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
     233
     234Attaching to program: /root/jfbterm-0.4.7/jfbterm, process 7480
     235Reading symbols from /lib/tls/i686/cmov/libutil.so.1...done.
     236Loaded symbols for /lib/tls/i686/cmov/libutil.so.1
     237Reading symbols from /lib/tls/i686/cmov/libm.so.6...done.
     238Loaded symbols for /lib/tls/i686/cmov/libm.so.6
     239Reading symbols from /lib/tls/i686/cmov/libc.so.6...done.
     240Loaded symbols for /lib/tls/i686/cmov/libc.so.6
     241Reading symbols from /lib/ld-linux.so.2...done.
     242Loaded symbols for /lib/ld-linux.so.2
     243Reading symbols from /lib/tls/i686/cmov/libnss_compat.so.2...done.
     244Loaded symbols for /lib/tls/i686/cmov/libnss_compat.so.2
     245Reading symbols from /lib/tls/i686/cmov/libnsl.so.1...done.
     246Loaded symbols for /lib/tls/i686/cmov/libnsl.so.1
     247Reading symbols from /lib/tls/i686/cmov/libnss_nis.so.2...done.
     248Loaded symbols for /lib/tls/i686/cmov/libnss_nis.so.2
     249Reading symbols from /lib/tls/i686/cmov/libnss_files.so.2...done.
     250Loaded symbols for /lib/tls/i686/cmov/libnss_files.so.2
     251Failed to read a valid object file image from memory.
     2520xb7fea410 in ?? ()
     253(gdb) break term.c:284
     254Breakpoint 1 at 0x804f552: file term.c, line 284.
     255(gdb) c
     256Continuing.
     257
     258Breakpoint 1, tterm_final (p=0x8058be0) at term.c:284
     259284             time(&(utp->ut_time));
     260(gdb) c
     261Continuing.
     262
     263Breakpoint 1, tterm_final (p=0x8058be0) at term.c:284
     264284             time(&(utp->ut_time));
     265(gdb) c
     266Continuing.
     267
     268Program exited normally.
     269}}}
     270 * GDB 遠端除錯練習
     271{{{
     272
     273}}}