+2018-07-20 Tom Tromey <tom@tromey.com>
+
+ * dwarf2read.c: Include buildsym.h.
+ (struct dwarf2_cu) <builder>: New method.
+ (fixup_go_packaging): Update.
+ (process_full_comp_unit, process_full_type_unit): Update. Don't
+ use scoped_free_pendings.
+ (using_directives): Add "cu" parameter, remove "language".
+ (read_import_statement, setup_type_unit_groups, )
+ (read_func_scope, read_lexical_block_scope)
+ (dwarf2_record_block_ranges, read_namespace): Update.
+ (lnp_state_machine::lnp_state_machine): Add cu parameter.
+ (lnp_state_machine::handle_end_sequence): Update.
+ (class lnp_state_machine) <m_cu>: New member.
+ <m_record_line_callback>: Remove.
+ <m_currently_recording_lines>: New member.
+ (lnp_state_machine::handle_set_file): Update.
+ (noop_record_line): Remove.
+ (dwarf_record_line_p): Add cu parameter.
+ (dwarf_record_line_1, dwarf_finish_line): Likewise.
+ (lnp_state_machine::record_line)
+ (lnp_state_machine::lnp_state_machine)
+ (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
+ (dwarf_decode_lines): Update.
+ (dwarf2_start_subfile): Add cu parameter.
+ (dwarf2_start_symtab, new_symbol): Update.
+ (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
+ Remove dwarf2_per_objfile parameter.
+ (dwarf_decode_macros): Update.
+
+2018-07-20 Tom Tromey <tom@tromey.com>
+
+ * stabsread.c (define_symbol): Update.
+ * buildsym-legacy.h (get_buildsym_compunit): Declare.
+ * dwarf2read.c (new_symbol): Update.
+ * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
+ * cp-namespace.c: Include buildsym.h.
+ (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
+ * buildsym-legacy.c (get_buildsym_compunit): New function.
+
+2018-07-20 Tom Tromey <tom@tromey.com>
+
+ * xcoffread.c: Include buildsym-legacy.h.
+ * windows-nat.c: Include buildsym-legacy.h.
+ * stabsread.c: Include buildsym-legacy.h.
+ * mdebugread.c: Include buildsym-legacy.h.
+ * buildsym-legacy.h: New file.
+ * buildsym-legacy.c: New file, from buildsym.c.
+ * go32-nat.c: Include buildsym-legacy.h.
+ * dwarf2read.c: Include buildsym-legacy.h.
+ * dbxread.c: Include buildsym-legacy.h.
+ * cp-namespace.c: Include buildsym-legacy.h.
+ * coffread.c: Include buildsym-legacy.h.
+ * buildsym.h: Move some contents to buildsym-legacy.h.
+ * buildsym.c: Include buildsym-legacy.h. Move many functions to
+ buildsym-legacy.c.
+ * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
+
+2018-07-20 Tom Tromey <tom@tromey.com>
+
+ * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
+ * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
+ (buildsym_compunit::buildsym_compunit)
+ (buildsym_compunit::~buildsym_compunit)
+ (buildsym_compunit::get_macro_table): Define.
+
+2018-07-20 Tom Tromey <tom@tromey.com>
+
+ * buildsym.c (reset_symtab_globals): Remove.
+ (buildsym_compunit::end_symtab_from_static_block): Update.
+ (buildsym_compunit::augment_type_symtab): Update.
+ (end_symtab_from_static_block): Call free_buildsym_compunit.
+ (augment_type_symtab, end_symtab, end_expandable_symtab):
+ Likewise.
+
+2018-07-20 Tom Tromey <tom@tromey.com>
+
+ * arch-utils.c: Do not include buildsym.h.
+ * mipsread.c: Do not include buildsym.h.
+ * machoread.c: Do not include buildsym.h.
+ * elfread.c: Do not include buildsym.h.
+
+2018-07-20 Tom Tromey <tom@tromey.com>
+
+ * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
+ initialization.
+ (buildsym_compunit): Add new constructor.
+ (struct buildsym_compunit) <get_last_source_file, finish_block,
+ record_block_range, start_subfile, patch_subfile_names,
+ push_subfile, pop_subfile, record_line, get_compunit_symtab,
+ set_last_source_start_addr, get_last_source_start_addr,
+ get_local_using_directives, set_local_using_directives,
+ get_global_using_directives, outermost_context_p,
+ get_current_context_stack, get_context_stack_depth,
+ get_current_subfile, get_local_symbols, get_file_symbols,
+ get_global_symbols, record_debugformat, record_producer,
+ push_context, pop_context, end_symtab_get_static_block,
+ end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
+ New public methods.
+ <record_pending_block, finish_block_internal, make_blockvector,
+ watch_main_source_file_lossage, end_symtab_with_blockvector>: New
+ private methods.
+ Update all users.
+
+2018-05-22 Tom Tromey <tom@tromey.com>
+
+ * buildsym.c (record_pending_block): Move earlier. Remove objfile
+ parameter.
+ (finish_block_internal): Update.
+
2018-07-20 Tom Tromey <tom@tromey.com>
* buildsym.c (record_pending_block): Move earlier. Remove objfile