<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # 調整窗口大小 ## 例子 #include <stdio.h> void fun1(void) { int i = 0; i++; i = i * 2; printf("%d\n", i); } void fun2(void) { int j = 0; fun1(); j++; j = j * 2; printf("%d\n", j); } int main(void) { fun2(); return 0; } ## 技巧 使用gdb圖形化調試界面時,可以使用“`winheight <win_name> [+ | -]count`”命令調整窗口大小(`winheight`縮寫為`win`。`win_name`可以是`src`、`cmd`、`asm`和`regs`)。以調試上面程序為例,這是原始的`src`窗口大小: ┌──a.c──────────────────────────────────────────────────────────────────────────────────────────┐ │17 j++; │ │18 j = j * 2; │ │19 printf("%d\n", j); │ │20 } │ │21 int main(void) 22 │23 { │ │24 fun2(); │ B+>│25 │ │ return 0; │ │26 } │ │27 32 │ │ │ │ │ │ │ │ │ │ └───────────────────────────────────────────────────────────────────────────────────────────────┘ native process 9667 In: main Line: 24 PC: 0x40052b Usage: winheight <win_name> [+ | -] <#lines> (gdb) start Temporary breakpoint 1 at 0x40052b: file a.c, line 24. Starting program: /home/nan/a Temporary breakpoint 1, main () at a.c:24 執行“`winheight src -5`”命令后: ┌──a.c──────────────────────────────────────────────────────────────────────────────────────────┐ │17 j++; │ │18 j = j * 2; │ │19 printf("%d\n", j); │ │20 } │ │21 │ │22 int main(void) │ │23 { │ >│24 fun2(); │ │25 return 0; │ │26 } │ │27 │ └───────────────────────────────────────────────────────────────────────────────────────────────┘ native process 9667 In: main Line: 24 PC: 0x40052b Usage: winheight <win_name> [+ | -] <#lines> (gdb) 可以看到窗口變小了。 接著執行“`winheight src +5`”命令: ┌──a.c──────────────────────────────────────────────────────────────────────────────────────────┐ │17 j++; │ │18 j = j * 2; │ │19 printf("%d\n", j); │ │20 } │ │21 │ │22 int main(void) │ │23 { │ >│24 fun2(); │ │25 return 0; │ │26 } │ │27 │ │28 │ │29 │ │30 │ │31 │ │32 │ └───────────────────────────────────────────────────────────────────────────────────────────────┘ native process 9667 In: main Line: 24 PC: 0x40052b Usage: winheight <win_name> [+ | -] <#lines> (gdb) 可以看到窗口恢復了原樣。 參見[gdb手冊](https://sourceware.org/gdb/onlinedocs/gdb/TUI-Commands.html). ## 貢獻者 nanxiao
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看