]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/tui] add SingleKey bindings for reverse execution commands
authorMagne Hov <mhov@undo.io>
Wed, 13 Dec 2023 11:45:49 +0000 (11:45 +0000)
committerMagne Hov <mhov@undo.io>
Wed, 13 Dec 2023 11:45:49 +0000 (11:45 +0000)
The bindings for the reverse execution commands are the same letters
as the forward execution command, but with the opposite case. This way
one can simply hold down the Shift modifier key or tap the Caps Lock key
to change the direction of execution.

Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Approved-By: Tom Tromey <tom@tromey.com>
gdb/doc/gdb.texinfo
gdb/tui/tui.c

index 6e4adf512ee4c5d2504f4c2fcc4d2f1a54830cd3..7a5d357b99bbac411ba2a99277894a8ceb373189 100644 (file)
@@ -30481,6 +30481,10 @@ switch into this mode, where the following key bindings are used:
 @item c
 continue
 
+@kindex C @r{(SingleKey TUI key)}
+@item C
+reverse-continue
+
 @kindex d @r{(SingleKey TUI key)}
 @item d
 down
@@ -30489,14 +30493,26 @@ down
 @item f
 finish
 
+@kindex F @r{(SingleKey TUI key)}
+@item F
+reverse-finish
+
 @kindex n @r{(SingleKey TUI key)}
 @item n
 next
 
+@kindex N @r{(SingleKey TUI key)}
+@item N
+reverse-next
+
 @kindex o @r{(SingleKey TUI key)}
 @item o
 nexti.  The shortcut letter @samp{o} stands for ``step Over''.
 
+@kindex O @r{(SingleKey TUI key)}
+@item O
+reverse-nexti
+
 @kindex q @r{(SingleKey TUI key)}
 @item q
 exit the SingleKey mode.
@@ -30509,10 +30525,18 @@ run
 @item s
 step
 
+@kindex S @r{(SingleKey TUI key)}
+@item S
+reverse-step
+
 @kindex i @r{(SingleKey TUI key)}
 @item i
 stepi.  The shortcut letter @samp{i} stands for ``step Into''.
 
+@kindex I @r{(SingleKey TUI key)}
+@item I
+reverse-stepi
+
 @kindex u @r{(SingleKey TUI key)}
 @item u
 up
index 33aced2e7e3301d2a44edc48e6b28e750275c7ef..885588a1b95cf17ed96b11445a1fc57c14eccd76 100644 (file)
@@ -85,13 +85,19 @@ struct tui_char_command
    mode.  */
 static const struct tui_char_command tui_commands[] = {
   { 'c', "continue" },
+  { 'C', "reverse-continue" },
   { 'd', "down" },
   { 'f', "finish" },
+  { 'F', "reverse-finish" },
   { 'n', "next" },
+  { 'N', "reverse-next" },
   { 'o', "nexti" },
+  { 'O', "reverse-nexti" },
   { 'r', "run" },
   { 's', "step" },
+  { 'S', "reverse-step" },
   { 'i', "stepi" },
+  { 'I', "reverse-stepi" },
   { 'u', "up" },
   { 'v', "info locals" },
   { 'w', "where" },