This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PING][PATCH v3] Add shortcuts for "nexti" and "stepi" commands in Single-Key mode
- From: Ruslan Kabatsayev <b7 dot 10110111 at gmail dot com>
- To: gdb-patches at sourceware dot org
- Cc: Ruslan Kabatsayev <b7 dot 10110111 at gmail dot com>
- Date: Mon, 14 Aug 2017 22:03:53 +0300
- Subject: [PING][PATCH v3] Add shortcuts for "nexti" and "stepi" commands in Single-Key mode
- Authentication-results: sourceware.org; auth=none
- References: <1501928455-3593-1-git-send-email-b7.10110111@gmail.com>
If there are no objections to this patch, how do I know that I may push it?
On 05/08/17 13:20, Ruslan Kabatsayev wrote:
> 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.
> ---
> gdb/doc/gdb.texinfo | 8 ++++++++
> gdb/tui/tui.c | 2 ++
> 2 files changed, 10 insertions(+)
>
> diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
> index 17b4c69..721819a 100644
> --- a/gdb/doc/gdb.texinfo
> +++ b/gdb/doc/gdb.texinfo
> @@ -25415,6 +25415,10 @@ finish
> @item n
> next
>
> +@kindex o @r{(SingleKey TUI key)}
> +@item o
> +nexti. The shortcut letter @samp{o} stands for ``step Over''.
> +
> @kindex q @r{(SingleKey TUI key)}
> @item q
> exit the SingleKey mode.
> @@ -25427,6 +25431,10 @@ run
> @item s
> step
>
> +@kindex i @r{(SingleKey TUI key)}
> +@item i
> +stepi. The shortcut letter @samp{i} stands for ``step Into''.
> +
> @kindex u @r{(SingleKey TUI key)}
> @item u
> up
> 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" },
>