This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/6] Remove global variable tracepoint_list and stepping_list.
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 25 Jun 2013 16:27:58 +0100
- Subject: Re: [PATCH 1/6] Remove global variable tracepoint_list and stepping_list.
- References: <1370610493-26468-1-git-send-email-yao at codesourcery dot com> <1371086914-8398-1-git-send-email-yao at codesourcery dot com> <1371086914-8398-2-git-send-email-yao at codesourcery dot com>
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