jit: c++-ify gdb_block
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index c30b60efbfd29577448c8bf8a4e5a2173addca6e..c797e87703f43491c00128658e14f1d85a79241f 100644 (file)
@@ -1,3 +1,34 @@
+2019-12-16  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * jit.c (struct gdb_block): Add constructor, initialize
+       real_block and next fields.
+       <name>: 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.
+
+2019-12-16  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * jit.c: Include forward_list.
+       (struct gdb_symtab) <next>: Remove field.
+       (struct gdb_object) <symtabs>: Change type to
+       std::forward_list<gdb_symtab>.
+       (jit_object_open_impl): Allocate gdb_object with new.
+       (jit_symtab_open_impl): Adjust to std::forward_list.
+       (finalize_symtab): Don't delete symtab.
+       (jit_object_close_impl):  Adjust to std::forward_list.  Free
+       gdb_object with delete.
+
+2019-12-16  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * jit.c (struct gdb_symtab): Add constructor, destructor,
+       initialize fields.
+       <linetable>: Change type to unique_xmalloc_ptr.
+       <file_name>: Change type to std::string.
+       (jit_symtab_open_impl): Allocate gdb_symtab with new.
+       (jit_symtab_line_mapping_add_impl): Adjust.
+       (finalize_symtab): Adjust, call delete on stab.
+
 2019-12-16  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
This page took 0.037444 seconds and 4 git commands to generate.