debugging using the GDB text user interface (GDB-TUI)

Source: Internet
Author: User

1) Open Tui mode
Start a debug using ' gdbtui-q ' or ' gdb-tui-q '
$ gdbtui-q test_struct
(GDB) ....

2) There are 4 windows in TUI mode,
command Commands window. You can type a debug command
Source Code window. Displays information such as current line, breakpoint, etc.
Assembly Assembly Code Window
Register Register window
In addition to the Command window, the other three Windows cannot be displayed simultaneously. It can be selected with the layout command
The window that you need. See ' Help layout '.

Ctrl+x and CTRL + A: Toggle the way GDB is displayed between classic and layout two ways.

3) After starting GDB, the above is the SRC window, the following is the CMD window, the default focus in the SRC window, so that the upper and lower keys and pagedown,pageup are moving the display code, do not display the debug command up and down. To switch focus at this point, simply refer to

Info win  View current Focus        SRC     (lines)    down toggle FocusFS SRC  Toggle Specify focus Focus set to SRC window. (GDB)

4)

debugging using the GDB text user interface (GDB-TUI)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.