This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2 2/3] gcore, target: allow target to prepare/cleanup for/after core file generation
- From: Pedro Alves <palves at redhat dot com>
- To: Markus Metzger <markus dot t dot metzger at intel dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 24 Jun 2014 14:11:02 +0100
- Subject: Re: [PATCH v2 2/3] gcore, target: allow target to prepare/cleanup for/after core file generation
- Authentication-results: sourceware.org; auth=none
- References: <1403599872-25299-1-git-send-email-markus dot t dot metzger at intel dot com> <1403599872-25299-2-git-send-email-markus dot t dot metzger at intel dot com>
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