Re: [PATCH v2 2/3] gcore, target: allow target to prepare/cleanup for/after core file generation

Pedro Alves
2014-06-24T13:11:23Z

On 06/24/2014 09:51 AM, Markus Metzger wrote:
> Add new target functions to_prepare_to_generate_core and
> to_done_generating_core that are called before and after generating a core
> file, respectively.
>
> This allows targets to prepare for core file generation and to clean up
> afterwards.
>
> 2014-06-24 Markus Metzger <markus.t.metzger@intel.com>
>
> * target.h (target_ops) <to_prepare_to_generate_core>
> <to_done_generating_core>: New.
> (target_prepare_to_generate_core, target_done_generating_core): New.
> * target.c (target_prepare_to_generate_core)
> (target_done_generating_core): New.
> * target-delegates.c: Regenerate.
> * gcore.c: (write_gcore_file): Rename to ...
> (write_gcore_file_1): ...this.
> (write_gcore_file): Call target_prepare_to_generate_core
> and target_done_generating_core.

OK.

Thanks,
--
Pedro Alves