From: Pedro Alves <palves@redhat.com>
To: "Marcin Kościelnicki" <koriakin@0x04.net>
Cc: gdb-patches@sourceware.org, antoine.tremblay@ericsson.com
Subject: Re: [PATCH] gdbserver: Remove tracepoint_action ops.
Date: Thu, 11 Feb 2016 16:50:00 -0000 [thread overview]
Message-ID: <56BCBBCB.8050901@redhat.com> (raw)
In-Reply-To: <1455208203-28310-1-git-send-email-koriakin@0x04.net>
On 02/11/2016 04:30 PM, Marcin KoÅcielnicki wrote:
> 2015-06-27 Wei-cheng Wang <cole945@gmail.com>
> 2016-02-11 Marcin KoÅcielnicki <koriakin@0x04.net>
Only one date, and then align names:
2015-06-27 Wei-cheng Wang <cole945@gmail.com>
Marcin KoÅcielnicki <koriakin@0x04.net>
See previous examples:
$ grep -P "\t.*@" gdb/ChangeLog-2015 -C 3 | less
>
> * tracepoint.c (struct tracepoint_action_ops): Removed.
"Remove."
> (struct tracepoint_action): Remove ops.
> (m_tracepoint_action_download, r_tracepoint_action_download,
> x_tracepoint_action_download, l_tracepoint_action_download): Adjust
> size and offset accordingly.
Split lines with close/open ()s:
(m_tracepoint_action_download, r_tracepoint_action_download)
(x_tracepoint_action_download, l_tracepoint_action_download): Adjust
size and offset accordingly.
> (m_tracepoint_action_ops, r_tracepoint_action_ops,
> x_tracepoint_action_ops, l_tracepoint_action_ops): Delete
Ditto. Period at end:
(m_tracepoint_action_ops, r_tracepoint_action_ops)
(x_tracepoint_action_ops, l_tracepoint_action_ops): Delete.
> (tracepoint_action_send, tracepoint_action_download): New functions.
> Helpers for tracetion action handlers.
Typo "tracetion".
> (add_tracepoint_action): Remove setup actions ops.
> (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
> ---
> Hey,
>
> This is a fixed-up version of Wei-cheng's patch at
> https://sourceware.org/ml/gdb-patches/2015-03/msg00995.html .
>
> This version, in addition to fixing a few trivial conflicts, also removes
> the definition of struct tracepoint_action_ops, which is now unused, but
> was left in by the original patch.
Thanks.
>
> I'm also not sure if I got the changelog format right...
>
> OK to push?
>
OK with fixes below.
> -
> static CORE_ADDR
> r_tracepoint_action_download (const struct tracepoint_action *action)
> {
> - int size_in_ipa = (sizeof (struct collect_registers_action)
> - - offsetof (struct tracepoint_action, type));
> - CORE_ADDR ipa_action = target_malloc (size_in_ipa);
> + CORE_ADDR ipa_action = target_malloc (sizeof (struct collect_registers_action));
>
Remove spurious double-space before '=' while at it.
> @@ -628,21 +592,14 @@ x_tracepoint_action_send ( char *buffer, const struct tracepoint_action *action)
> return agent_expr_send (buffer, eaction->expr);
> }
>
> -static const struct tracepoint_action_ops x_tracepoint_action_ops =
> -{
> - x_tracepoint_action_download,
> - x_tracepoint_action_send,
> -};
> -
> static CORE_ADDR
> l_tracepoint_action_download (const struct tracepoint_action *action)
> {
> - int size_in_ipa = (sizeof (struct collect_static_trace_data_action)
> - - offsetof (struct tracepoint_action, type));
> - CORE_ADDR ipa_action = target_malloc (size_in_ipa);
> + CORE_ADDR ipa_action =
> + target_malloc (sizeof (struct collect_static_trace_data_action));
The '=' goes at the beginning of the next line.
OK with those fixed.
Thanks,
Pedro Alves
next prev parent reply other threads:[~2016-02-11 16:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-23 19:32 [PATCH] gdb.trace: Remove struct tracepoint_action_ops Marcin Kościelnicki
2016-01-25 11:54 ` Pedro Alves
2016-01-25 12:17 ` Marcin Kościelnicki
2016-01-29 13:11 ` Antoine Tremblay
2016-02-08 11:55 ` Marcin Kościelnicki
2016-01-29 10:14 ` Marcin Kościelnicki
2016-02-06 1:05 ` Marcin Kościelnicki
2016-02-08 13:05 ` Antoine Tremblay
2016-02-11 16:30 ` [PATCH] gdbserver: Remove tracepoint_action ops Marcin Kościelnicki
2016-02-11 16:50 ` Pedro Alves [this message]
2016-02-11 22:24 ` Marcin Kościelnicki
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=56BCBBCB.8050901@redhat.com \
--to=palves@redhat.com \
--cc=antoine.tremblay@ericsson.com \
--cc=gdb-patches@sourceware.org \
--cc=koriakin@0x04.net \
/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