jit: make gdb_symtab::blocks an std::forward_list
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 60cf8c152f777abf4de5ef136f45d1acd539dc5d..fa3f0a689357b9c998b51177b89bdf4016e12228 100644 (file)
@@ -1,3 +1,90 @@
+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.
+       * coffread.c (process_coff_symbol): Update.
+       * ctfread.c (ctf_add_enum_member_cb): Update.
+       (new_symbol): Update.
+       * dwarf2read.c (fixup_go_packaging): Update.
+       (new_symbol): Update.
+       * language.c (language_alloc_type_symbol): Update.
+       * mdebugread.c (new_symbol): Update.
+       * minsyms.c (minimal_symbol_reader::record_full): Update.
+       * psymtab.c (add_psymbol_to_bcache): Update.
+       * stabsread.c (define_symbol): Update.
+       (read_enum_type): Update.
+       * symtab.c (symbol_set_language): Make this a member function...
+       (general_symbol_info::set_language): ... here.
+       * symtab.h (struct general_symbol_info) <set_language>: New function.
+       (SYMBOL_SET_LANGUAGE): Remove.
+       (symbol_set_language): Remove.
+
 2019-12-15  Christian Biesinger  <cbiesinger@google.com>
 
        * ada-lang.c (ada_add_block_symbols): Update.
This page took 0.029149 seconds and 4 git commands to generate.