This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] New class allocate_on_obstack
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <qiyaoltc at gmail dot com>, gdb-patches at sourceware dot org
- Cc: tom at tromey dot com
- Date: Wed, 7 Feb 2018 15:20:31 +0000
- Subject: Re: [PATCH] New class allocate_on_obstack
- Authentication-results: sourceware.org; auth=none
- References: <1517996444-8605-1-git-send-email-yao.qi@linaro.org>
On 02/07/2018 09:40 AM, Yao Qi wrote:
> This patch adds a new class allocate_on_obstack, and let dwarf2_per_objfile
> inherit it, so that dwarf2_per_objfile is automatically allocated on
> obstack, and "delete dwarf2_per_objfile" doesn't de-allocate any space.
>
> Regression tested on x86_64-linux.
LGTM.
Thanks,
Pedro Alves