public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] [gdb/tui] add SingleKey bindings for reverse execution commands
@ 2023-12-08 13:38 Magne Hov
  2023-12-08 15:11 ` Tom Tromey
  2023-12-08 16:27 ` [PATCH v2] " Magne Hov
  0 siblings, 2 replies; 8+ messages in thread
From: Magne Hov @ 2023-12-08 13:38 UTC (permalink / raw)
  To: gdb-patches; +Cc: Magne Hov

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.
---
 gdb/tui/tui.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c
index 941c65c970f..6d6a03251e7 100644
--- a/gdb/tui/tui.c
+++ b/gdb/tui/tui.c
@@ -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" },
-- 
2.40.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-12-13 12:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-08 13:38 [PATCH] [gdb/tui] add SingleKey bindings for reverse execution commands Magne Hov
2023-12-08 15:11 ` Tom Tromey
2023-12-08 16:27 ` [PATCH v2] " Magne Hov
2023-12-08 19:23   ` Eli Zaretskii
2023-12-11 15:11   ` Tom Tromey
2023-12-12 14:59     ` Magne Hov
2023-12-12 18:15       ` Tom Tromey
2023-12-13 12:06         ` Magne Hov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).