Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PUSHED] Add shortcuts for "nexti" and "stepi" commands in Single-Key mode
@ 2017-08-16 18:49 Ruslan Kabatsayev
  2017-08-16 19:14 ` Pedro Alves
  2017-08-16 19:15 ` Eli Zaretskii
  0 siblings, 2 replies; 4+ messages in thread
From: Ruslan Kabatsayev @ 2017-08-16 18:49 UTC (permalink / raw)
  To: gdb-patches; +Cc: Ruslan Kabatsayev

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/ChangeLog       |    5 +++++
 gdb/doc/ChangeLog   |    5 +++++
 gdb/doc/gdb.texinfo |    8 ++++++++
 gdb/tui/tui.c       |    2 ++
 4 files changed, 20 insertions(+)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ea5dd32..dc184c5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2017-08-16  Ruslan Kabatsayev  <b7.10110111@gmail.com>
+
+	* tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
+	mode command list.
+
 2017-08-15  Stafford Horne  <shorne@gmail.com>
 
 	* MAINTAINERS (Write After Approval): Add Stafford Horne.
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 4b40698..8e3e5ce 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2017-08-16  Ruslan Kabatsayev  <b7.10110111@gmail.com>
+
+	* gdb.texinfo (TUI Single Key Mode): Document the new shortcuts in
+	Single-Key mode.
+
 2017-08-12  Sergio Durigan Junior  <sergiodj@redhat.com>
 
 	PR gdb/21925
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 7528183..0d39a55 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" },
-- 
1.7.10.2


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

* Re: [PUSHED] Add shortcuts for "nexti" and "stepi" commands in Single-Key mode
  2017-08-16 18:49 [PUSHED] Add shortcuts for "nexti" and "stepi" commands in Single-Key mode Ruslan Kabatsayev
@ 2017-08-16 19:14 ` Pedro Alves
  2017-08-16 19:20   ` Simon Marchi
  2017-08-16 19:15 ` Eli Zaretskii
  1 sibling, 1 reply; 4+ messages in thread
From: Pedro Alves @ 2017-08-16 19:14 UTC (permalink / raw)
  To: Ruslan Kabatsayev, gdb-patches

IMO this warrants a gdb/NEWS entry.

Thanks,
Pedro Alves

On 08/16/2017 07:49 PM, 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/ChangeLog       |    5 +++++
>  gdb/doc/ChangeLog   |    5 +++++
>  gdb/doc/gdb.texinfo |    8 ++++++++
>  gdb/tui/tui.c       |    2 ++
>  4 files changed, 20 insertions(+)
> 
> diff --git a/gdb/ChangeLog b/gdb/ChangeLog
> index ea5dd32..dc184c5 100644
> --- a/gdb/ChangeLog
> +++ b/gdb/ChangeLog
> @@ -1,3 +1,8 @@
> +2017-08-16  Ruslan Kabatsayev  <b7.10110111@gmail.com>
> +
> +	* tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
> +	mode command list.
> +
>  2017-08-15  Stafford Horne  <shorne@gmail.com>
>  
>  	* MAINTAINERS (Write After Approval): Add Stafford Horne.
> diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
> index 4b40698..8e3e5ce 100644
> --- a/gdb/doc/ChangeLog
> +++ b/gdb/doc/ChangeLog
> @@ -1,3 +1,8 @@
> +2017-08-16  Ruslan Kabatsayev  <b7.10110111@gmail.com>
> +
> +	* gdb.texinfo (TUI Single Key Mode): Document the new shortcuts in
> +	Single-Key mode.
> +
>  2017-08-12  Sergio Durigan Junior  <sergiodj@redhat.com>
>  
>  	PR gdb/21925
> diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
> index 7528183..0d39a55 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" },
> 


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

* Re: [PUSHED] Add shortcuts for "nexti" and "stepi" commands in Single-Key mode
  2017-08-16 18:49 [PUSHED] Add shortcuts for "nexti" and "stepi" commands in Single-Key mode Ruslan Kabatsayev
  2017-08-16 19:14 ` Pedro Alves
@ 2017-08-16 19:15 ` Eli Zaretskii
  1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2017-08-16 19:15 UTC (permalink / raw)
  To: Ruslan Kabatsayev; +Cc: gdb-patches

> From: Ruslan Kabatsayev <b7.10110111@gmail.com>
> Cc: Ruslan Kabatsayev <b7.10110111@gmail.com>
> Date: Wed, 16 Aug 2017 21:49:34 +0300
> 
> 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.

OK for the documentation part.


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

* Re: [PUSHED] Add shortcuts for "nexti" and "stepi" commands in Single-Key mode
  2017-08-16 19:14 ` Pedro Alves
@ 2017-08-16 19:20   ` Simon Marchi
  0 siblings, 0 replies; 4+ messages in thread
From: Simon Marchi @ 2017-08-16 19:20 UTC (permalink / raw)
  To: Pedro Alves; +Cc: Ruslan Kabatsayev, gdb-patches

On 2017-08-16 21:13, Pedro Alves wrote:
> IMO this warrants a gdb/NEWS entry.
> 
> Thanks,
> Pedro Alves

Ah, you're right, I always forget about that.

Ruslan, can you submit a patch for a NEWS entry describing the new 
feature?

Thanks,

Simon


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

end of thread, other threads:[~2017-08-16 19:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-16 18:49 [PUSHED] Add shortcuts for "nexti" and "stepi" commands in Single-Key mode Ruslan Kabatsayev
2017-08-16 19:14 ` Pedro Alves
2017-08-16 19:20   ` Simon Marchi
2017-08-16 19:15 ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox