[PATCH 1/5] OO tracepoint action.

Pedro Alves palves@redhat.com
Wed Mar 14 18:28:00 GMT 2012


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



More information about the Gdb-patches mailing list