小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

gdb的gui用法

 quasiceo 2018-04-22



調(diào)試代碼的時(shí)候,只能看到下一行,每次使用list非常煩,不知道當(dāng)前代碼的context 

http:///guide/bggdb/#compiling

 

簡(jiǎn)單來(lái)說(shuō)就是在以往的gdb開(kāi)始的時(shí)候添加一個(gè)-tui選項(xiàng).有的版本已經(jīng)有g(shù)dbtui這個(gè)程序了

在linux自帶的終端里是正常顯示的,但是在securecrt里面,可能由于編碼的問(wèn)題,邊緣會(huì)有些亂碼,不過(guò)不影響使用(如果你的程序有錯(cuò)誤輸出,會(huì)擾亂整個(gè)界面,所以在調(diào)試的時(shí)候,建議添加2>/dev/null,這樣的話基本可用) 

啟動(dòng)gdb之后,上面是src窗口,下面是cmd窗口,默認(rèn)focus在src窗口的,這樣的話上下鍵以及pagedown,pageup都是在移動(dòng)顯示代碼,并不顯示上下的調(diào)試命令.這個(gè)時(shí)候要切換focus,具體可簡(jiǎn)單參見(jiàn)

(gdb) info win  查看當(dāng)前focus
        SRC     (36 lines)  <has focus>
        CMD     (18 lines)
(gdb) fs next  切換focus
Focus set to CMD window.
(gdb) info win 
        SRC     (36 lines)
        CMD     (18 lines)  <has focus>
(gdb) fs SRC  切換指定focus
Focus set to SRC window.
(gdb)

(Window names are case in-sensitive.)

  

 

 

To start in neato and highly-recommended GUI mode, start the debugger with gdb -tui. (For many of the examples, below, I show the output of gdb's dumb terminal mode, but in real life I use TUI mode exclusively.)

And here is a screenshot of what you'll see, approximately:

In TUI mode, the layout command controls which windows you see. Additionally, the tui reg allows control of the register window, and will open it if it's not already open.

The commands are:
layout srcStandard layout—source on top, command window on the bottom
layout asmJust like the "src" layout, except it's an assembly window on top
layout splitThree windows: source on top, assembly in the middle, and command at the bottom
layout regOpens the register window on top of either source or assembly, whichever was opened last
tui reg generalShow the general registers
tui reg floatShow the floating point registers
tui reg systemShow the "system" registers
tui reg nextShow the next page of registers—this is important because there might be pages of registers that aren't in the "general", "float", or "system" sets

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多