From: Pedro Alves <palves@redhat.com>
To: Yao Qi <yao@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Move some code into get_register.
Date: Fri, 07 Jun 2013 19:58:00 -0000 [thread overview]
Message-ID: <51B2367C.4090104@redhat.com> (raw)
In-Reply-To: <1370608997-20957-1-git-send-email-yao@codesourcery.com>
On 06/07/2013 01:43 PM, Yao Qi wrote:
> Hi,
> This is a refactor patch. This patch moves some common code in
> caller of get_register into get_register, and rename it to
> output_register. With this patch, the caller of output_register can
> be simplified to some extent.
Thanks.
> gdb:
>
> 2013-06-07 Pedro Alves <pedro@codesourcery.com>
> Yao Qi <yao@codesourcery.com>
>
> * mi/mi-main.c (get_register): Remove declaration.
> (output_register): Declare.
> (mi_cmd_data_list_register_values): Remove local variable
> 'tuple_cleanup'. Move some code into output_register.
> (get_register): Renamed to ...
> (output_register): ... it.
s/it/this/.
Add something like:
(output_register): ... This. Output the register's
"number" ui_out tuple here.
> -/* Output one register's contents in the desired format. */
> +/* Output one register REGNUM's contents in the desired FORMAT. */
You're naming the register now, so, s/one//.
Okay with those fixes.
Thanks!
--
Pedro Alves
next prev parent reply other threads:[~2013-06-07 19:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-07 12:43 Yao Qi
2013-06-07 19:58 ` Pedro Alves [this message]
2013-06-08 1:53 ` Yao Qi
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=51B2367C.4090104@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=yao@codesourcery.com \
/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