From: Magne Hov <mhov@undo.io>
To: gdb-patches@sourceware.org
Cc: Magne Hov <mhov@undo.io>
Subject: [PATCH] [gdb/tui] add SingleKey bindings for reverse execution commands
Date: Fri, 8 Dec 2023 13:38:36 +0000 [thread overview]
Message-ID: <20231208133836.835625-1-mhov@undo.io> (raw)
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
next reply other threads:[~2023-12-08 13:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-08 13:38 Magne Hov [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231208133836.835625-1-mhov@undo.io \
--to=mhov@undo.io \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).