jit: make gdb_symtab::blocks an std::forward_list
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index f3b27bd73b27810a3283a2ef5125ae564ef00746..fa3f0a689357b9c998b51177b89bdf4016e12228 100644 (file)
@@ -1,3 +1,70 @@
+2019-12-16  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * jit.c (struct gdb_block) <next>: Remove field.
+       (struct gdb_symtab) <~gdb_symtab>: Remove.
+       <blocks>: Change type to std::forward_list<gdb_block>.
+       (compare_block): Remove.
+       (jit_block_open_impl): Adjust to std::forward_list.  Place the new
+       block at the beginning, don't mind about sorting.
+       (finalize_symtab): Adjust to std::forward_list, sort the blocks list
+       before using it.
+
+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.
+
+2019-12-16  Tom Tromey  <tromey@adacore.com>
+
+       * windows-nat.c (windows_nat_target::attach): Update.
+       * remote.c (extended_remote_target::attach): Update.
+       * procfs.c (procfs_target::attach): Update.
+       * nto-procfs.c (nto_procfs_target::attach): Update.
+       (nto_procfs_target::create_inferior): Update.
+       * inf-ptrace.c (inf_ptrace_target::attach): Update.
+       * gnu-nat.c (gnu_nat_target::attach): Update.
+       (gnu_nat_target::detach): Update.
+       * darwin-nat.c (darwin_nat_target::attach): Update.
+       * corefile.c (get_exec_file): Constify result.  Remove extraneous
+       return.
+       * bsd-kvm.c (bsd_kvm_target_open): Update.
+       * gdbsupport/common-inferior.h (get_exec_file): Constify result.
+
+2019-12-16  Christian Biesinger  <cbiesinger@google.com>
+
+       * gdbsupport/common-defs.h: Remove workaround for a gnulib bug
+       (we no longer need to include time.h before pathmax.h)
+
 2019-12-15  Christian Biesinger  <cbiesinger@google.com>
 
        * ada-exp.y (write_ambiguous_var): Update.
This page took 0.027507 seconds and 4 git commands to generate.