jit: make gdb_object::symtabs an std::forward_list
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 86718ad83e275d088356078f6420fd0133373f52..b70f3fa04fd926f5b69eaeae318093f74f318632 100644 (file)
@@ -1,3 +1,15 @@
+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,
This page took 0.025133 seconds and 4 git commands to generate.