From: Simon Marchi Date: Mon, 16 Dec 2019 21:30:50 +0000 (-0500) Subject: jit: c++-ify gdb_block X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=b61121178ec07f9da1242e439fe1a23a314ad30e;hp=b61121178ec07f9da1242e439fe1a23a314ad30e;p=deliverable%2Fbinutils-gdb.git jit: c++-ify gdb_block Add a constructor to gdb_block, change the name field to be a gdb::unique_xmalloc_ptr. This is in preparation for using an std::forward_list in the next patch. gdb/ChangeLog: * jit.c (struct gdb_block): Add constructor, initialize real_block and next fields. : Change type to gdb::unique_xmalloc_ptr. (struct gdb_symtab) <~gdb_symtab>: Free blocks with delete. (jit_block_open_impl): Allocate gdb_block with new. (finalize_symtab): Adjust to gdb::unique_xmalloc_ptr. ---