+2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
+ Remove.
+ <n_allocated_type_units>: Remove.
+ <all_type_units>: Change to std::vector.
+ * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
+ to std::vector change.
+ (dwarf2_per_objfile::get_cutu): Likewise.
+ (dwarf2_per_objfile::get_tu): Likewise.
+ (create_signatured_type_table_from_index): Likewise.
+ (create_signatured_type_table_from_debug_names): Likewise.
+ (dw2_symtab_iter_next): Likewise.
+ (dw2_print_stats): Likewise.
+ (dw2_expand_all_symtabs): Likewise.
+ (dw2_expand_marked_cus): Likewise.
+ (dw2_debug_names_iterator::next): Likewise.
+ (dwarf2_initialize_objfile): Likewise.
+ (add_signatured_type_cu_to_table): Likewise.
+ (create_all_type_units): Likewise.
+ (add_type_unit): Likewise.
+ (struct tu_abbrev_offset): Add constructor.
+ (build_type_psymtabs_1): Adjust to std::vector change.
+ (print_tu_stats): Likewise.
+ * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
+ (write_debug_names): Likewise.
+
+2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
+ Make an std::vector.
+ <n_comp_units>: Remove.
+ * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
+ to std::vector change.
+ (dwarf2_per_objfile::get_cutu): Likewise.
+ (dwarf2_per_objfile::get_cu): Likewise.
+ (create_cus_from_index): Likewise.
+ (create_addrmap_from_index): Likewise.
+ (create_addrmap_from_aranges): Likewise.
+ (dwarf2_read_index): Likewise.
+ (dw2_find_last_source_symtab): Likewise.
+ (dw2_map_symtabs_matching_filename): Likewise.
+ (dw2_symtab_iter_next): Likewise.
+ (dw2_print_stats): Likewise.
+ (dw2_expand_all_symtabs): Likewise.
+ (dw2_expand_symtabs_with_fullname): Likewise.
+ (dw2_expand_marked_cus): Likewise.
+ (dw2_map_symbol_filenames): Likewise.
+ (create_cus_from_debug_names): Likewise.
+ (dwarf2_read_debug_names): Likewise.
+ (dw2_debug_names_iterator::next): Likewise.
+ (dwarf2_initialize_objfile): Likewise.
+ (set_partial_user): Likewise.
+ (dwarf2_build_psymtabs_hard): Likewise.
+ (read_comp_units_from_section): Remove arguments, adjust to
+ std::vector change.
+ (create_all_comp_units): Adjust to std::vector and
+ read_comp_units_from_section changes.
+ (dwarf2_find_containing_comp_unit): Adjust to std::vector
+ change.
+ * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
+ (psyms_seen_size): Likewise.
+ (write_gdbindex): Likewise.
+ (write_debug_names): Likewise.
+
+2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
+ with dwarf2_per_objfile.
+ (create_cus_from_index): Likewise.
+ (create_signatured_type_table_from_index): Likewise.
+ (dwarf2_read_index): Likewise.
+ (dwarf2_initialize_objfile): Likewise.
+ (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
+ per_cu rather than get_dwarf2_per_objfile.
+
+2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * dwarf2read.h (struct signatured_type): Forward declare.
+ (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
+ New methods.
+ * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
+ (dw2_get_cutu): ...this.
+ (dwarf2_per_objfile::get_cu): Rename from...
+ (dw2_get_cu): ...this.
+ (dwarf2_per_objfile::get_tu): New.
+ (create_addrmap_from_index): Adjust.
+ (create_addrmap_from_aranges): Adjust.
+ (dw2_find_last_source_symtab): Adjust.
+ (dw2_map_symtabs_matching_filename): Adjust.
+ (dw2_symtab_iter_next): Adjust.
+ (dw2_print_stats): Adjust.
+ (dw2_expand_all_symtabs): Adjust.
+ (dw2_expand_symtabs_with_fullname): Adjust.
+ (dw2_expand_marked_cus): Adjust.
+ (dw_expand_symtabs_matching_file_matcher): Adjust.
+ (dw2_map_symbol_filenames): Adjust.
+ (dw2_debug_names_iterator::next): Adjust.
+ (dwarf2_initialize_objfile): Adjust.
+ (set_partial_user): Adjust.
+ (dwarf2_build_psymtabs_hard): Adjust.
+
+2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * dwarf2read.c (create_signatured_type_table_from_debug_names):
+ Remove unused variables.
+ (dw2_map_symtabs_matching_filename): Likewise.
+ (dwarf2_record_block_ranges): Likewise.
+ (dwarf2_read_addr_index): Likewise.
+ (follow_die_offset): Likewise.
+
+2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
+ to symbol_file_add_main.
+
+2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
+
+ PR mi/22299
+ * mi/mi-console.c (do_fputc_async_safe): New.
+ (mi_console_file::write_async_safe): New.
+ (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
+ * mi/mi-console.h (class mi_console_file) <write_async_safe>:
+ New.
+ * ui-file.c (ui_file::putstrn): Adjust call to
+ fputstrn_unfiltered.
+ * utils.c (printchar): Replace do_fputs and do_fprintf
+ parameters by do_fputc.
+ (fputstr_filtered): Adjust call to printchar.
+ (fputstr_unfiltered): Likewise.
+ (fputstrn_filtered): Likewise.
+ (fputstrn_unfiltered): Add do_fputc parameter, pass to
+ printchar.
+ * utils.h (do_fputc_ftype): New typedef.
+ (fputstrn_unfiltered): Add do_fputc parameter.
+
+2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * regformats/i386/i386-avx.dat: Remove.
+
+2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
+
+ PR gdb/22979
+ * amd64-tdep.c (amd64_none_init_abi): New function.
+ (amd64_x32_none_init_abi): New function.
+ (_initialize_amd64_tdep): Register handlers for x86-64 and
+ x64_32 with GDB_OSABI_NONE.
+ * osabi.c (gdbarch_init_osabi): Allow running handlers for the
+ GDB_OSABI_NONE osabi.
+
+2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
+
+ PR gdb/22980
+ * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
+ GDB_OSABI_NONE.
+ * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
+ * osabi.c (gdb_osabi_names): Add "unknown" entry.
+
+2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
+
+ * common/byte-vector.h (char_vector): New type.
+ * target.h (target_read_alloc): Return
+ gdb::optional<byte_vector>.
+ (target_read_stralloc): Return gdb::optional<char_vector>.
+ (target_get_osdata): Return gdb::optional<char_vector>.
+ * target.c (target_read_alloc_1): Templatize. Replacement
+ manual memory management with vector.
+ (target_read_alloc): Change return type, adjust.
+ (target_read_stralloc): Change return type, adjust.
+ (target_get_osdata): Change return type, adjust.
+ * auxv.c (struct auxv_info) <length>: Remove.
+ <data>: Change type to gdb::optional<byte_vector>.
+ (auxv_inferior_data_cleanup): Free auxv_info with delete.
+ (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
+ (target_auxv_search): Adjust.
+ (fprint_target_auxv): Adjust.
+ * avr-tdep.c (avr_io_reg_read_command): Adjust.
+ * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
+ (linux_make_corefile_notes): Adjust.
+ * osdata.c (get_osdata): Adjust.
+ * remote.c (remote_get_threads_with_qxfer): Adjust.
+ (remote_memory_map): Adjust.
+ (remote_traceframe_info): Adjust.
+ (btrace_read_config): Adjust.
+ (remote_read_btrace): Adjust.
+ (remote_pid_to_exec_file): Adjust.
+ * solib-aix.c (solib_aix_get_library_list): Adjust.
+ * solib-dsbt.c (decode_loadmap): Don't free buf.
+ (dsbt_get_initial_loadmaps): Adjust.
+ * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
+ * solib-target.c (solib_target_current_sos): Adjust.
+ * tracepoint.c (sdata_make_value): Adjust.
+ * xml-support.c (xinclude_start_include): Adjust.
+ (xml_fetch_content_from_file): Adjust.
+ * xml-support.h (xml_fetch_another): Change return type.
+ (xml_fetch_content_from_file): Change return type.
+ * xml-syscall.c (xml_init_syscalls_info): Adjust.
+ * xml-tdesc.c (file_read_description_xml): Adjust.
+ (fetch_available_features_from_target): Change return type.
+ (target_fetch_description_xml): Adjust.
+ (target_read_description_xml): Adjust.
+
+2018-04-06 Tom Tromey <tom@tromey.com>
+
+ * value.c (~value): Update.
+ (struct value) <contents>: Now unique_xmalloc_ptr.
+ (value_contents_bits_eq, allocate_value_contents)
+ (value_contents_raw, value_contents_all_raw)
+ (value_contents_for_printing, value_contents_for_printing_const)
+ (set_value_enclosing_type): Update.
+
+2018-04-06 Tom Tromey <tom@tromey.com>
+
+ * value.c (range_s): Remove typedef, VEC.
+ (struct range): Add operator<.
+ (range_lessthan): Remove.
+ (ranges_contain): Change type.
+ (~value): Update.
+ (struct value) <unavailable, optimized_out>: Now std::vector.
+ (value_entirely_available)
+ (value_entirely_covered_by_range_vector)
+ (value_entirely_unavailable, value_entirely_optimized_out):
+ Update.
+ (insert_into_bit_range_vector): Change argument type.
+ (find_first_range_overlap): Likewise.
+ (struct ranges_and_idx, value_contents_bits_eq)
+ (require_not_optimized_out, require_available): Update.
+ (ranges_copy_adjusted): Change argument types.
+ (value_optimized_out, value_copy, value_fetch_lazy): Update.
+
2018-04-06 Tom Tromey <tom@tromey.com>
* value.c (~value): Update.