[PATCH] New class allocate_on_obstack

Pedro Alves palves@redhat.com
Wed Feb 7 15:20:00 GMT 2018


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



More information about the Gdb-patches mailing list