Re: [PATCH 1/6] Remove global variable tracepoint_list and stepping_list.

Pedro Alves
2013-06-25T15:28:03Z

On 06/13/2013 02:28 AM, Yao Qi wrote:
> This patch is a refactor patch. Simply, it removes two global
> variables tracepoint_list and stepping_list.
>
> gdb:
>
> 2013-06-13 Pedro Alves <pedro@codesourcery.com>
> Yao Qi <yao@codesourcery.com>
>
> * tracepoint.c (tracepoint_list, stepping_list): Remove.
> (clear_collection_list): Free fields 'aexpre_list' and 'list' in
> collection_list.
> (do_clear_collection_list, init_collection_list): New.
> (encode_actions): Add local variables 'tracepoint_list' and
> 'stepping_list'. Call init_collection_list and make cleanup which
> calls do_clear_collection_list. Don't call clear_collection_list.
> (_initialize_tracepoint): Delete references to 'tracepoint_list'
> and 'stepping_list'.

OK, thanks.

--
Pedro Alves