Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Update comments to list_args_or_locals.
@ 2013-08-05  0:47 Yao Qi
  2013-08-05 13:39 ` Tom Tromey
  0 siblings, 1 reply; 4+ messages in thread
From: Yao Qi @ 2013-08-05  0:47 UTC (permalink / raw)
  To: gdb-patches

The comments to function list_args_or_locals look out of date.  This
patch is to update the comments.  I am not good at writing comments,
so review is required here, IMO.

gdb:

2013-08-05  Yao Qi  <yao@codesourcery.com>

	* mi/mi-cmd-stack.c: Update comments to function
	list_args_or_locals.
---
 gdb/mi/mi-cmd-stack.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/gdb/mi/mi-cmd-stack.c b/gdb/mi/mi-cmd-stack.c
index 70ff0b6..416f0f4 100644
--- a/gdb/mi/mi-cmd-stack.c
+++ b/gdb/mi/mi-cmd-stack.c
@@ -502,10 +502,9 @@ list_arg_or_local (const struct frame_arg *arg, enum what_to_list what,
   do_cleanups (old_chain);
 }
 
-/* Print a list of the locals or the arguments for the currently
-   selected frame.  If the argument passed is 0, printonly the names
-   of the variables, if an argument of 1 is passed, print the values
-   as well.  */
+/* Print a list of the objects for the currently selected frame FI in
+   a certain form, which is determined by VALUES.  The objects can be
+   locals, arguments or both, which is determined by WHAT.  */
 
 static void
 list_args_or_locals (enum what_to_list what, enum print_values values,
-- 
1.7.7.6


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

* Re: [PATCH] Update comments to list_args_or_locals.
  2013-08-05  0:47 [PATCH] Update comments to list_args_or_locals Yao Qi
@ 2013-08-05 13:39 ` Tom Tromey
  2013-08-05 13:43   ` Yao Qi
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Tromey @ 2013-08-05 13:39 UTC (permalink / raw)
  To: Yao Qi; +Cc: gdb-patches

>>>>> "Yao" == Yao Qi <yao@codesourcery.com> writes:

Yao> 2013-08-05  Yao Qi  <yao@codesourcery.com>
Yao> 	* mi/mi-cmd-stack.c: Update comments to function
Yao> 	list_args_or_locals.

Yao> -/* Print a list of the locals or the arguments for the currently
Yao> -   selected frame.  If the argument passed is 0, printonly the names
Yao> -   of the variables, if an argument of 1 is passed, print the values
Yao> -   as well.  */
Yao> +/* Print a list of the objects for the currently selected frame FI in
Yao> +   a certain form, which is determined by VALUES.  The objects can be
Yao> +   locals, arguments or both, which is determined by WHAT.  */

I think the bit about "currently selected frame FI" is odd.  Usually
"currently selected frame" refers to the one the user chose with "up" or
"down".

Otherwise it seems fine to me.

Tom


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

* Re: [PATCH] Update comments to list_args_or_locals.
  2013-08-05 13:39 ` Tom Tromey
@ 2013-08-05 13:43   ` Yao Qi
  2013-08-05 14:08     ` Tom Tromey
  0 siblings, 1 reply; 4+ messages in thread
From: Yao Qi @ 2013-08-05 13:43 UTC (permalink / raw)
  To: Tom Tromey; +Cc: gdb-patches

On 08/05/2013 09:39 PM, Tom Tromey wrote:
> I think the bit about "currently selected frame FI" is odd.  Usually
> "currently selected frame" refers to the one the user chose with "up" or
> "down".

How about "Print a list of the objects for the frame FI ..."?

-- 
Yao (齐尧)


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

* Re: [PATCH] Update comments to list_args_or_locals.
  2013-08-05 13:43   ` Yao Qi
@ 2013-08-05 14:08     ` Tom Tromey
  0 siblings, 0 replies; 4+ messages in thread
From: Tom Tromey @ 2013-08-05 14:08 UTC (permalink / raw)
  To: Yao Qi; +Cc: gdb-patches

Yao> How about "Print a list of the objects for the frame FI ..."?

Sounds good.

Tom


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

end of thread, other threads:[~2013-08-05 14:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-05  0:47 [PATCH] Update comments to list_args_or_locals Yao Qi
2013-08-05 13:39 ` Tom Tromey
2013-08-05 13:43   ` Yao Qi
2013-08-05 14:08     ` Tom Tromey

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