[RFC,5/5] Announce 'frame apply', faas, taas, tfaas commands and -FLAGS... arg for frame apply

Message ID 20180505192804.12731-6-philippe.waroquiers@skynet.be
State Superseded
Headers show
Series
  • Implenent 'frame apply COMMAND', enhance 'thread apply COMMAND'
Related show

Commit Message

Philippe Waroquiers May 5, 2018, 7:28 p.m.
Announce the user visible changes.
---
 gdb/NEWS | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

-- 
2.11.0

Comments

Eli Zaretskii May 6, 2018, 7:13 p.m. | #1
> From: Philippe Waroquiers <philippe.waroquiers@skynet.be>

> Cc: Philippe Waroquiers <philippe.waroquiers@skynet.be>

> Date: Sat,  5 May 2018 21:28:04 +0200

> 

> Announce the user visible changes.

> ---

>  gdb/NEWS | 25 +++++++++++++++++++++++++

>  1 file changed, 25 insertions(+)

> 

> diff --git a/gdb/NEWS b/gdb/NEWS

> index cef558039e..8ee4db985d 100644

> --- a/gdb/NEWS

> +++ b/gdb/NEWS

> @@ -14,6 +14,24 @@

>  

>  * New commands

>  

> +frame apply [all | COUNT | -COUNT] [-FLAGS...] COMMAND

> +  Apply a command to a number of frames.

> +  The FLAGS allows to control what output to produce and how to handle

> +  errors raised when applying COMMAND to a frame.

> +

> +taas COMMAND

> +  Apply a command to all threads (ignoring errors and empty output)


Please add a period at the end of this sentence.

> +  Shortcut for 'thread apply all -s COMMAND'


Likewise.

> +faas COMMAND

> +  Apply a command to all frames (ignoring errors and empty output)


Likewise,

> +  Shortcut for 'frame apply all -s COMMAND'


Likewise.

> +

> +tfaas COMMAND

> +  Apply a command to all frames of all threads (ignoring errors and empty

> +  output).

> +  Shortcut for 'thread apply all -s frame apply all -s COMMAND'


Likewise.

> +

>  set debug fbsd-nat

>  show debug fbsd-nat

>    Control display of debugging info regarding the FreeBSD native target.

> @@ -27,6 +45,13 @@ set|show record btrace cpu

>    Controls the processor to be used for enabling errata workarounds for

>    branch trace decode.

>  

> +* Changed commands

> +

> +thread apply [all | COUNT | -COUNT] [-FLAGS...] COMMAND

> +  The thread apply command accepts a new argument FLAGS.


Please quote "thread apply" 'like this'.

Thanks.

Patch

diff --git a/gdb/NEWS b/gdb/NEWS
index cef558039e..8ee4db985d 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -14,6 +14,24 @@ 
 
 * New commands
 
+frame apply [all | COUNT | -COUNT] [-FLAGS...] COMMAND
+  Apply a command to a number of frames.
+  The FLAGS allows to control what output to produce and how to handle
+  errors raised when applying COMMAND to a frame.
+
+taas COMMAND
+  Apply a command to all threads (ignoring errors and empty output)
+  Shortcut for 'thread apply all -s COMMAND'
+
+faas COMMAND
+  Apply a command to all frames (ignoring errors and empty output)
+  Shortcut for 'frame apply all -s COMMAND'
+
+tfaas COMMAND
+  Apply a command to all frames of all threads (ignoring errors and empty
+  output).
+  Shortcut for 'thread apply all -s frame apply all -s COMMAND'
+
 set debug fbsd-nat
 show debug fbsd-nat
   Control display of debugging info regarding the FreeBSD native target.
@@ -27,6 +45,13 @@  set|show record btrace cpu
   Controls the processor to be used for enabling errata workarounds for
   branch trace decode.
 
+* Changed commands
+
+thread apply [all | COUNT | -COUNT] [-FLAGS...] COMMAND
+  The thread apply command accepts a new argument FLAGS.
+  The FLAGS allows to control what output to produce and how to handle errors
+  raised when applying COMMAND to a frame.
+
 * Python API
 
   ** Type alignment is now exposed via the "align" attribute of a gdb.Type.