This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/5] OO tracepoint action.
On 03/07/2012 03:31 PM, Yao Qi wrote:
> +static CORE_ADDR
> +l_tracepoint_action_download (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);
> +
> + write_inferior_memory (ipa_action, (unsigned char *) &action->type,
> + size_in_ipa);
> +
> + return ipa_action;
> +}
> +static struct tracepoint_action_ops l_tracepoint_action_ops =
Missing empty line. Otherwise OK.
> +{
> + l_tracepoint_action_download,
> +};
> +#endif
> +
--
Pedro Alves