亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪問板塊 發(fā)新帖
查看: 1778 | 回復(fù): 0
打印 上一主題 下一主題

使用Clewn連接gvim和gdb [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2008-12-28 15:37 |只看該作者 |倒序?yàn)g覽

                   Clewn是一個(gè)把gvim和gdb連接起來的工具,使得在調(diào)試時(shí)代碼可以顯示在gvim中,得到類似在IDE中的效果。使用Clewn不需要修改vim
源代碼。另外一個(gè)把vim和gdb結(jié)合起來的工具:vimgdb則需要修改vim源代碼,并重新編譯vim。但是Clewn必須需要有GUI的
gvim,vimgdb則在gvim和vim中都可以達(dá)到效果。
使用Clewn一般步驟如下:
               
               
                $clewn -va
your_source.cpp
此時(shí)進(jìn)入gdb命令行界面,并且gvim自動(dòng)打開your_source.cpp文件。
(gdb)file your_execute
獲得要調(diào)試文件的symbols
然后就可以在(gdb)中使用b main等命令設(shè)置斷點(diǎn)。也可以在gvim中使用ctrl+b來設(shè)置斷點(diǎn)(第一次設(shè)斷點(diǎn)的時(shí)候ctrl+b要按兩下才有效,不知道是不是bug)。
clewn在gvim中設(shè)置的快捷鍵:
List of default key mappings:
    CTRL-Z  send an interrupt to GDB and the program it is running
    B       info breakpoints
    L       info locals
    A       info args
    S       step
    I       stepi
    CTRL-N  next: next source line, skipping all function calls
    X       nexti
    F       finish
    R       run
    Q       quit
    C       continue
    W       where
    CTRL-U  up: go up one frame
    CTRL-D  down: go down one frame
cursor position:
    CTRL-B  set a breakpoint on the line where the cursor is located
    CTRL-E  clear all breakpoints on the line where the cursor is located
mouse pointer position:
    CTRL-P  print the value of the variable defined by the mouse pointer
                position
    CTRL-X  print the value that is referenced by the address whose
                value is that of the variable defined by the mouse pointer
                position
    CTRL-K  set a breakpoint at assembly address shown by mouse position
    CTRL-H  clear a breakpoint at assembly address shown by mouse position
    CTRL-J  add the selected variable at mouse position to the watched
                variables window
               
               

本文來自ChinaUnix博客,如果查看原文請(qǐng)點(diǎn):http://blog.chinaunix.net/u2/87718/showart_1755879.html
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP