diff options
author | Ruslan Kabatsayev <b7.10110111@gmail.com> | 2017-08-16 21:44:29 +0300 |
---|---|---|
committer | Ruslan Kabatsayev <b7.10110111@gmail.com> | 2017-08-16 21:44:29 +0300 |
commit | a5afdb1665ab0e030034d40f871b5cc17cda3969 (patch) | |
tree | 8ffbf2da564800b5121f5580ccc7acc84561928e /gdb/tui | |
parent | 1a457753cfad05989574c671a221ffce2d5df703 (diff) | |
download | gdb-a5afdb1665ab0e030034d40f871b5cc17cda3969.zip gdb-a5afdb1665ab0e030034d40f871b5cc17cda3969.tar.gz gdb-a5afdb1665ab0e030034d40f871b5cc17cda3969.tar.bz2 |
Add shortcuts for "nexti" and "stepi" commands in Single-Key mode
Currently, "layout asm" is not so useful as "layout src" with Single-Key mode:
you have to use multi-key commands like "ni" and "si" to do single-stepping.
This patch adds, in addition to "next" and "step" commands, corresponding
assembly-level ones - "nexti" and "stepi" - to Single-Key mode, with the
shortcuts of "o" (from "step Over") and "i" (from "Step Into") respectively.
gdb/ChangeLog:
* tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
mode command list.
gdb/doc/ChangeLog:
* gdb.texinfo (TUI Single Key Mode): Document the new shortcuts in
Single-Key mode.
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c index c918f3e..b77a885 100644 --- a/gdb/tui/tui.c +++ b/gdb/tui/tui.c @@ -75,8 +75,10 @@ static const struct tui_char_command tui_commands[] = { { 'd', "down" }, { 'f', "finish" }, { 'n', "next" }, + { 'o', "nexti" }, { 'r', "run" }, { 's', "step" }, + { 'i', "stepi" }, { 'u', "up" }, { 'v', "info locals" }, { 'w', "where" }, |