+2018-08-27 Tom Tromey <tom@tromey.com>
+
+ * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
+ * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
+ ULONGEST_MAX.
+ * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
+ ULONGEST_MAX.
+ * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
+ ULONGEST_MAX.
+ * sparc-linux-tdep.c (sparc32_linux_sigframe)
+ (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
+ * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
+ ULONGEST_MAX.
+ * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
+ (ppc64_linux_sigaction_tramp_frame)
+ (ppc32_linux_sighandler_tramp_frame)
+ (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
+ * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
+ (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
+ * mn10300-linux-tdep.c (am33_linux_sigframe)
+ (am33_linux_rt_sigframe): Use ULONGEST_MAX.
+ * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
+ * mips-linux-tdep.c (mips_linux_o32_sigframe)
+ (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
+ (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
+ (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
+ (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
+ * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
+ (mips64_fbsd_sigframe): Use ULONGEST_MAX.
+ * microblaze-linux-tdep.c
+ (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
+ * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
+ (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
+ (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
+ * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
+ * common/common-types.h (ULONGEST_MAX): New define.
+ (CORE_ADDR_MAX): Fix formatting.
+ * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
+ * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
+ * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
+ (arm_linux_rt_sigreturn_tramp_frame)
+ (arm_eabi_linux_sigreturn_tramp_frame)
+ (arm_eabi_linux_rt_sigreturn_tramp_frame)
+ (thumb2_eabi_linux_sigreturn_tramp_frame)
+ (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
+ (arm_linux_restart_syscall_tramp_frame)
+ (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
+ * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
+ * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
+ ULONGEST_MAX.
+ * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
+
+2018-08-27 Tom Tromey <tom@tromey.com>
+
+ * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
+ CORE_ADDR_MAX.
+ * mips-tdep.c (mips_deal_with_atomic_sequence)
+ (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
+ * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
+ (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
+ * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
+ CORE_ADDR_MAX.
+ * aarch64-tdep.c (aarch64_software_single_step): Use
+ CORE_ADDR_MAX.
+
+2018-08-27 Tom Tromey <tom@tromey.com>
+
+ * linespec.c (complete_linespec_component): Add cast to "char".
+ * completer.c (completion_tracker::build_completion_result): Add
+ cast to "char".
+
+2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * solist.h (struct solist, struct target_so_ops): Fix
+ indentation.
+
+2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * ada-tasks.c (ada_task_info_s): Remove typedef.
+ (DEF_VEC_O(ada_task_info_s)): Remove.
+ (struct ada_tasks_inferior_data): Initialize fields.
+ <task_list>: Make an std::vector.
+ (get_ada_tasks_inferior_data): Allocate with new.
+ (ada_get_task_number): Adjust.
+ (get_task_number_from_id): Likewise.
+ (valid_task_id): Likewise.
+ (ada_get_task_info_from_ptid): Likewise.
+ (iterate_over_live_ada_tasks): Likewise.
+ (add_ada_task): Likewise.
+ (read_known_tasks): Likewise.
+ (ada_build_task_list): Likewise.
+ (print_ada_task_info): Likewise.
+ (info_task): Likewise.
+ (task_command_1): Likewise.
+
+2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * ada-lang.c (add_angle_brackets): Return std::string.
+
+2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * python/py-threadevent.c (py_get_event_thread): Initialize
+ pythread.
+
+2018-08-24 Pedro Alves <palves@redhat.com>
+
+ * python/py-bpevent.c (create_breakpoint_event_object): Use
+ copy-initialization.
+ * python/py-continueevent.c (emit_continue_event): Use
+ copy-initialization.
+ * python/py-exitedevent.c (create_exited_event_object): Return a
+ gdbpy_ref<>.
+ (emit_exited_event): Use copy-initialization.
+ * python/py-inferior.c (python_new_inferior)
+ (python_inferior_deleted, add_thread_object): Use
+ copy-initialization.
+ * python/py-infevents.c (create_inferior_call_event_object)
+ (create_register_changed_event_object)
+ (create_memory_changed_event_object): Return a gdbpy_ref<>.
+ (emit_inferior_call_event, emit_memory_changed_event)
+ (emit_register_changed_event): Use copy-initialization.
+ * python/py-newobjfileevent.c (create_new_objfile_event_object):
+ Return a gdbpy_ref<>.
+ (emit_new_objfile_event): Use copy-initialization.
+ (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
+ (emit_clear_objfiles_event): Use copy-initialization.
+ * python/py-signalevent.c (create_signal_event_object): Use
+ copy-initialization.
+ * python/py-threadevent.c (create_thread_event_object): Use
+ copy-initialization.
+
+2018-08-24 Pedro Alves <palves@redhat.com>
+ Simon Marchi <simon.marchi@ericsson.com>
+
+ PR gdb/23379
+ * python/py-continueevent.c: Include "gdbthread.h".
+ (create_continue_event_object): Add intro comment. Add 'ptid'
+ parameter. Use it to find thread to pass to
+ create_thread_event_object.
+ (emit_continue_event): Pass PTID down to
+ create_continue_event_object.
+ * python/py-event.h (py_get_event_thread): Declare.
+ (create_thread_event_object): Remove default from 'thread'
+ parameter.
+ * python/py-stopevent.c (create_stop_event_object): Use
+ py_get_event_thread.
+ * python/py-threadevent.c (get_event_thread): Rename to ...
+ (py_get_event_thread): ... this, make extern, add 'ptid' parameter
+ and use it to find the thread.
+ (create_thread_event_object): Assert that THREAD isn't null.
+ Don't find the event thread here.
+
+2018-08-23 Kevin Buettner <kevinb@redhat.com>
+
+ * block.h (blockrange, blockranges): New struct declarations.
+ (struct block): Add new field named `ranges'.
+ (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
+ (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
+ macros for accessing ranges in struct block.
+ (make_blockranges): New declaration.
+ block.c (make_blockranges): New function.
+ * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
+ for block.
+ * symtab.h (find_pc_partial_function): Add new parameter `block'.
+ * blockframe.c (cache_pc_function_block): New static global.
+ (clear_pc_function_cache): Clear cache_pc_function_block.
+ (find_pc_partial_function): Move comment to symtab.h. Add
+ support for non-contiguous blocks.
+ * cli/cli-cmds.c (block.h): Include.
+ (print_disassembly): Handle printing of non-contiguous blocks.
+ (disassemble_current_function): Likewise.
+ (disassemble_command): Likewise.
+
+ * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
+ BLOCK_START.
+ * blockframe.c (get_pc_function_start): Likewise.
+ * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
+ (gcc_symbol_address): Likewise.
+ * compile/compile-object-run.c (compile_object_run): Likewise.
+ * compile/compile.c (get_expr_block_and_pc): Likewise.
+ * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
+ (func_addr_to_tail_call_list): Likewise.
+ * findvar.c (default_read_var_value): Likewise.
+ * inline-frame.c (inline_frame_this_id): Likewise.
+ (skip-inline_frames): Likewise.
+ * infcmd.c (until_next_command): Likewise.
+ * linespec.c (convert_linespec_to_sals): Likewise.
+ * parse.c (parse_exp_in_context_1): Likewise.
+ * printcmd.c (build_address_symbolic): likewise.
+ (info_address_command): Likewise.
+ symtab.c (find_function_start_sal): Likewise.
+ (skip_prologue_sal): Likewise.
+ (find_function_alias_target): Likewise.
+ (find_gnu_ifunc): Likewise.
+ * stack.c (find_frame_funname): Likewise.
+ * symtab.c (fixup_symbol_section): Likewise.
+ (find_function_start_sal): Likewise.
+ (skip_prologue_sal): Likewsie.
+ (find_function_alias_target): Likewise.
+ (find_gnu_ifunc): Likewise.
+ * tracepoint.c (info_scope_command): Likewise.
+ * value.c (value_fn_field): Likewise.
+
+ * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
+ in place of find_pc_partial_function.
+ * blockframe.c (find_function_entry_range_from_pc): New function.
+ * symtab.h (find_function_entry_range_from_pc): Declare and document.
+ * objfiles.c (objfile_relocate1): Relocate start and end addresses
+ for each range in a block.
+
+
+2018-08-23 Xavier Roirand <roirand@adacore.com>
+
+ * machoread.c (macho_symfile_read_all_oso): Remove uneeded
+ incrementation.
+
+2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * solib-svr4.c (read_program_headers_from_bfd): Return
+ gdb::optional<gdb::byte_vector>.
+ (svr4_exec_displacement): Adjust.
+
+2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * solib-svr4.c (read_program_header): Return
+ gdb::optional<gdb::byte_vector>, remove p_sect_size param.
+ (find_program_interpreter): Return
+ gdb::optional<gdb::byte_vector>.
+ (scan_dyntag_auxv): Adjust.
+ (enable_break): Adjust.
+ (svr4_exec_displacement): Adjust.
+
+2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
+ * inf-child.c (inf_child_target::terminal_save_inferior): New.
+
+2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * guile/scm-string.c (gdbscm_scm_from_printf): Use
+ string_vprintf.
+ * guile/scm-utils.c (gdbscm_printf): Likewise.
+ * serial.c (serial_printf): Likewise.
+ * xml-support.c (gdb_xml_parser::vdebug): Likewise.
+
+2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
+
+ * stack.c (print_frame): Print frame architecture when printing on
+ an MI output.
+ * NEWS: Mention new "arch" attribute in frame output.
+
+2018-08-21 Alan Hayward <alan.hayward@arm.com>
+
+ * arch/aarch64.h (aarch64_regnum): Update comment.
+
+2018-08-21 Alan Hayward <alan.hayward@arm.com>
+
+ * NEWS: Add SVE to 8.2 section.
+
+2018-08-21 Pedro Alves <palves@redhat.com>
+
+ * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
+ out from gdbscm_parse_function_args.
+ (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
+ gdbscm_parse_function_args_1.
+
+2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
+
+ PR gdb/17816
+ * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
+ operator.
+
+2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * solib-svr4.c (svr4_exec_displacement): Fix formatting.
+
+2018-08-19 Michael Spang <spang@google.com>
+
+ PR gdb/11786
+ * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
+ for PT_TLS segments.
+
+2018-08-18 Kevin Buettner <kevinb@redhat.com>
+
+ * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
+ dwarf_variable_value.
+ * dwarf2-frame.c (class dwarf_expr_executor):
+ Add override for dwarf_variable_value.
+ * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
+ (class symbol_needs_eval_context): Likewise.
+ (indirect_synthetic_pointer): Add forward declaration.
+ (sect_variable_value): New function.
+ (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
+ * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
+ for DW_OP_GNU_variable_value.
+
+2018-08-16 Tom Tromey <tom@tromey.com>
+
+ * top.c (read_command_file): Update.
+ (command_line_input): Remove "repeat" argument.
+ * ada-lang.c (get_selections): Update.
+ * linespec.c (decode_line_2): Update.
+ * defs.h (command_line_input): Remove argument.
+ * cli/cli-script.c (read_next_line): Update.
+ * python/py-gdb-readline.c: Update.
+
+2018-08-17 Tom Tromey <tom@tromey.com>
+
+ * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
+ command_line_input.
+
+2018-08-15 Tom Tromey <tom@tromey.com>
+
+ * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
+
+2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
+
+ * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
+ If used, use find_pc_partial_function to find address range
+ to disassemble.
+ * mi/mi-main.c (mi_cmd_list_features): Report
+ "data-disassemble-a-option" feature.
+ * NEWS: Mention new -data-disassemble option -a.
+
+2018-08-13 Tom Tromey <tom@tromey.com>
+
+ * common/common-defs.h (_FORTIFY_SOURCE): Define.
+
+2018-08-13 Alan Hayward <alan.hayward@arm.com>
+
+ * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
+ (aarch64_linux_collect_sve_regset): Likewise.
+ (aarch64_linux_iterate_over_regset_sections): Check for SVE.
+ * regcache.h (regcache_map_entry_size): New function.
+
+2018-08-13 Alan Hayward <alan.hayward@arm.com>
+
+ * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
+ (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
+ (SVE_HEADER_VL_LENGTH): Likewise.
+ (SVE_HEADER_MAX_VL_LENGTH): Likewise.
+ (SVE_HEADER_FLAGS_LENGTH): Likewise.
+ (SVE_HEADER_RESERVED_LENGTH): Likewise.
+ (SVE_HEADER_SIZE_OFFSET): Likewise.
+ (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
+ (SVE_HEADER_VL_OFFSET): Likewise.
+ (SVE_HEADER_MAX_VL_OFFSET): Likewise.
+ (SVE_HEADER_FLAGS_OFFSET): Likewise.
+ (SVE_HEADER_RESERVED_OFFSET): Likewise.
+ (SVE_HEADER_SIZE): Likewise.
+ (aarch64_linux_core_read_vq): Add function.
+ (aarch64_linux_core_read_description): Check for SVE section.
+
+2018-08-13 Alan Hayward <alan.hayward@arm.com>
+
+ * aarch64-fbsd-tdep.c
+ (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
+ collect_size.
+ * aarch64-linux-tdep.c
+ (aarch64_linux_iterate_over_regset_sections): Likewise.
+ * alpha-linux-tdep.c
+ (alpha_linux_iterate_over_regset_sections):
+ * alpha-nbsd-tdep.c
+ (alphanbsd_iterate_over_regset_sections): Likewise.
+ * amd64-fbsd-tdep.c
+ (amd64fbsd_iterate_over_regset_sections): Likewise.
+ * amd64-linux-tdep.c
+ (amd64_linux_iterate_over_regset_sections): Likewise.
+ * arm-bsd-tdep.c
+ (armbsd_iterate_over_regset_sections): Likewise.
+ * arm-fbsd-tdep.c
+ (arm_fbsd_iterate_over_regset_sections): Likewise.
+ * arm-linux-tdep.c
+ (arm_linux_iterate_over_regset_sections): Likewise.
+ * corelow.c (get_core_registers_cb): Likewise.
+ (core_target::fetch_registers): Likewise.
+ * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
+ * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
+ * gdbarch.h (void): Regenerate.
+ * gdbarch.sh: Add supply_size and collect_size.
+ * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
+ * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
+ * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
+ * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
+ * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
+ * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
+ * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
+ * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
+ * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
+ * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
+ * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
+ * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
+ * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
+ * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
+ * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
+ * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
+ * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
+ * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
+ * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
+ * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
+ * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
+ * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
+ * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
+ * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
+ * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
+ * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
+ * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
+ * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
+ * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
+ * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
+
+2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
+
+ * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
+ with string_printf.
+
+2018-08-10 Keith Seitz <keiths@redhat.com>
+
+ * compile/compile-c-support.c (add_code_header, add_code_footer):
+ Move into policy class.
+ (c_push_user_expression, pop_user_expression_nop)
+ (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
+ (compile_program): New host class.
+ (c_compile_program): New typedef.
+ (c_compute_porgram): Use c_compile_program.
+
+2018-08-10 Keith Seitz <keiths@redhat.com>
+
+ * compile/compile-internal.h (compile_instance::~compile_instance):
+ Remove calls to htab_delete.
+ <m_type_map, m_symbol_err_map>: Switch type to htab_up.
+ * compile.c (compile_instance::compile_instance): Initialize
+ htab unique pointers.
+ (compile_instance::get_cached_type, compile_instance::insert_type)
+ (compile_instance::error_symbol_once): Update for unique_ptr.
+
+2018-08-10 Keith Seitz <keiths@redhat.com>
+
+ * compile/compile-c-symbols.c (struct symbol_error)
+ (hash_symbol_error, eq_symbol_error, del_symbol_error)
+ (compile_instance::insert_symbol_error)
+ (compile_instance::error_symbol_once): Move to ...
+ * compile/compile.c: ... here.
+
+2018-08-10 Keith Seitz <keiths@redhat.com>
+
+ * compile/compile-c-support.c (c_get_compile_context): Use `new'
+ instead of `new_compile_instance'.
+ * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
+ Update description.
+ If the symbol error map is not initialized, create it.
+ (generate_c_for_for_one_symbol): Do not check/initialize
+ the symbol error map.
+ * compile/compile-c-types.c (compile_c_instance): Make a class.
+ Update all callers.
+ (compile_instance::compile_instance): Initialize the type cache.
+ (get_cached_type): New function.
+ (insert_type): Update description.
+ (compile_c_instance::m_default_cflags): Define.
+ (convert_type): Update description. Use get_cached_type.
+ (delete_instance): Moved to destructor.
+ (new_compile_instance): Moved to constructor.
+ * compile/compile-c.h (compile_c_instance): Make class inheriting
+ from compile_instance.
+ <base>: Remove field.
+ <type_map, symbol_err_map>: Move to base class.
+ <c_plugin>: Rename to `m_plugin' and remove pointer type.
+ * compile/compile-internal.h (compile_instance): Make class.
+ <type_map_t, symbol_err_map_t>: Define.
+ <fe>: Rename to `m_gcc_fe'.
+ <scope, block, gcc_target_options>: Add `m_' prefix.
+ <m_type_map, m_symbol_err_map>: New fields, moved from
+ compile_c_instance.
+ <destroy>: Remove.
+ (convert_type, new_compile_instance): Remove.
+ * compile/compile.c (cleanup_compile_instance): Remove.
+ (compile_to_object): Use unique_ptr to eliminate cleanups.
+ (compile_instance::set_print_callback, compile_instance::version)
+ (compile_instance::set_verbose)
+ (compile_instance::set_driver_filename)
+ (compile_instance::set_triplet_regexp)
+ (compile_instance::set_arguments)
+ (compile_instance::set_source_file)
+ (compile_instance::compile): Define.
+
+2018-08-10 Keith Seitz <keiths@redhat.com>
+
+ * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
+ * compile/compile-c-types.c: Define GCC_METHODN macros and include
+ gcc-c-fe.def to define C plugin.
+ (delete_instance): Delete `c_plugin'.
+ (new_compile_instance): Initialize `c_plugin'.
+ * compile/compile-c.h: Include gcc_c_plugin.h.
+ (struct compile_c_instance) <c_plugin>: New member.
+ * gcc-c-plugin.h: New file.
+ Update all callers with API change.
+
+2018-08-10 Keith Seitz <keiths@redhat.com>
+
+ * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
+ (HFILES_NO_SRCDIR): ... to here.
+ Add compile-internal.h and compile-c.h.
+ * compile/compile-c-support.c: Include compile-c.h.
+ * compile/compile-c-symbols.c: Include compile-c.h.
+ (generate_c_for_variable_locations): Update comment.
+ * compile/compile-c-types.c: Include compile-c.h.
+ * compile/compile-c.h: New file -- moved C language declarations
+ from other files here.
+ * compile/compile-internal.h: Do not include hashtab.h or
+ common/enum-flags.h.
+ (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
+ (gcc_convert_symbol, gcc_symbol_address)
+ (generate_c_for_variable_locations, c_get_mode_for_size)
+ (c_get_range_decl_name): Definitions moved to compile-c.h.
+ * compile/compile-loc2c.c: Include compile-c.h.
+
+2018-08-10 Keith Seitz <keiths@redhat.com>
+
+ * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
+ (c_symbol_substitution_name): ... this.
+ Update all callers.
+
+2018-08-10 Keith Seitz <keiths@redhat.com>
+
+ * compile/compile-c-support.c (c_compute_program): Use
+ unique_xmalloc_ptr to eliminate cleanup.
+ * compile/compile-c-symbols.c (generate_c_for_variable_locations):
+ Return a unique_xmalloc_ptr and eliminate cleanup.
+ * compile/compile-internal.h (generate_c_for_variable_locations):
+ Return unique_xmalloc_ptr and update description.
+
+2018-08-10 Alan Hayward <alan.hayward@arm.com>
+
+ * corelow.c (core_target::get_core_register_section): Rename
+ min_size to section_min_size.
+
+2018-08-09 Jim Wilson <jimw@sifive.com>
+
+ * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
+ (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
+ * NEWS: Mention new GNU/Linux RISC-V target.
+ * configure.host: Add riscv*-*-linux*.
+ * configure.nat: Add riscv*.
+ * configure.tgt: Add riscv*-*-linux*.
+ * riscv-linux-nat.c: New file.
+ * riscv-linux-tdep.c: New file.
+
+2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * infrun.c (resume): Make static, add forward declaration.
+ (proceed): Update header comment.
+ * infrun.h (resume): Delete declaration.
+
+2018-08-09 Tom Tromey <tom@tromey.com>
+
+ * riscv-tdep.h: Minor formatting fixes.
+
+2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
+
+ * common/scoped_mmap.c (mmap_file): Silence ARI warning.
+ * dwarf-index-cache.c (create_dir_and_check): Likewise.
+ (test_mkdir_recursive): Likewise.
+ * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
+
+2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * valarith.c (value_subscripted_rvalue): If an array is not in
+ memory, and we don't know the upper bound, then we can't know that
+ the requested element exists or not.
+
+2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
+
+ * target.c (str_comma_list_concat_elem): Fix typo in comment.
+ (target_options_to_string): Add comment.
+
+2018-08-08 Tom Tromey <tom@tromey.com>
+
+ * unittests/scoped_mmap-selftests.c: Check result of "write".
+
+2018-08-08 Jim Wilson <jimw@sifive.com>
+
+ * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
+ (decode_register_index_short): New.
+ (decode_j_type_insn, decode_cj_type_insn): New.
+ (decode_b_type_insn, decode_cb_type_insn): New.
+ (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
+ local xlen. Check xlen when decoding ambiguous compressed insns. In
+ compressed decode, use is_c_lui_insn instead of is_lui_insn, and
+ is_c_sw_insn instead of is_sw_insn.
+ (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
+ (riscv_software_single_step): New.
+ * riscv-tdep.h (riscv_software_single_step): Declare.
+
+ * riscv-tdep.c (riscv_isa_xlen): Drop static.
+ * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
+
+2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ PR gdb/18050:
+ * target.c (dispose_inferior): Don't dispose of inferiors that are
+ already killed.
+
+2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
+
+ * remote.c (remote_target::download_tracepoint): Change char* to
+ const char*.
+
+2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * target.h (target_options_to_string): Return an std::string.
+ * target.c (str_comma_list_concat_elem): Return void, use
+ std::string.
+ (do_option): Likewise.
+ (target_options_to_string): Return an std::string.
+ * linux-nat.c (linux_nat_target::wait): Adjust.
+ * target-debug.h (target_debug_print_options): Adjust.
+
+2018-08-07 Tom Tromey <tom@tromey.com>
+
+ * Makefile.in (CPPFLAGS): New variable.
+ (INTERNAL_CPPFLAGS): Use it.
+
+2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
+
+ * NEWS: Mention the index cache.
+
+2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
+
+ * common/pathstuff.h (get_standard_cache_dir): New.
+ * common/pathstuff.c (get_standard_cache_dir): New.
+ * build-id.h (build_id_to_string): New.
+ * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
+ DEBUG_STR_SUFFIX): Move to here.
+ * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
+ DEBUG_STR_SUFFIX): Move from there.
+ (write_psymtabs_to_index): Make non-static, add basename
+ parameter. Write to temporary files, rename when done.
+ (save_gdb_index_command): Adjust call to
+ write_psymtabs_to_index.
+ * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
+ field.
+ * dwarf2read.c (dwz_file) <index_cache_res>: New field.
+ (get_gdb_index_contents_from_cache): New.
+ (get_gdb_index_contents_from_cache_dwz): New.
+ (dwarf2_initialize_objfile): Read index from cache.
+ (dwarf2_build_psymtabs): Save to index.
+ * dwarf-index-cache.h: New file.
+ * dwarf-index-cache.c: New file.
+ * dwarf-index-write.h: New file.
+
+2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
+
+ * gnulib/aclocal.m4: Re-generate.
+ * gnulib/config.in: Re-generate.
+ * gnulib/configure: Re-generate.
+ * gnulib/import/Makefile.am: Re-generate.
+ * gnulib/import/Makefile.in: Re-generate.
+ * gnulib/import/m4/gnulib-cache.m4: Re-generate.
+ * gnulib/import/m4/gnulib-comp.m4: Re-generate.
+ * gnulib/import/m4/mkdir.m4: New file.
+ * gnulib/import/mkdir.c: New file.
+ * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
+ module.
+
+2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
+
+ * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
+ * common/scoped_mmap.c: New file.
+ * common/scoped_mmap.h (destroy): New method.
+ (~scoped_mmap, reset): Use destroy.
+ (scoped_mmap): New move constructor.
+ (mmap_file): New declaration.
+ * unittests/scoped_mmap-selftests.c (test_normal,
+ test_invalid_filename, run_tests): New functions.
+ (_initialize_scoped_mmap_selftests): Register selftest.
+
+2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
+
+ * dwarf2read.c (read_gdb_index_from_section): Rename to...
+ (read_gdb_index_from_buffer): ... this. Remove section
+ parameter, add buffer parameter.
+ (get_gdb_index_contents_ftype,
+ get_gdb_index_contents_dwz_ftype): New typedefs.
+ (dwarf2_read_gdb_index): Add callback parameters to get the
+ index contents.
+ (get_gdb_index_contents_from_section): New.
+ (dwarf2_initialize_objfile): Update call to
+ dwarf2_read_gdb_index.
+
+2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
+
+ * common/filestuff.h (gdb_fopen_cloexec): New overload.
+ (gdb_open_cloexec): Likewise.
+ * nat/linux-osdata.c (command_from_pid): Use string_printf.
+ (commandline_from_pid): Likewise.
+ (linux_xfer_osdata_threads): Likewise.
+ (linux_xfer_osdata_fds): Likewise.
+ * ada-lang.c (is_package_name): Likewise.
+ * auxv.c (procfs_xfer_auxv): Likewise.
+ * breakpoint.c (print_one_breakpoint_location): Use
+ uiout::field_fmt.
+ (print_one_catch_solib): Use string_printf.
+ * coff-pe-read.c (add_pe_exported_sym): Likewise.
+ (add_pe_forwarded_sym): Likewise.
+ * dwarf2read.c (create_type_unit_group): Likewise.
+ (build_error_marker_type): Likewise.
+ * infcall.c (get_function_name): Likewise.
+ * valprint.c (print_converted_chars_to_obstack): Likewise.
+ * xtensa-tdep.c (xtensa_register_type): Likewise.
+
+2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
+
+ * remote.c (remote_target::download_tracepoint): Fix format
+ string errors.
+
+2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
+
+ * tracefile.c: Include common/byte-vector.h.
+ (trace_save): Change type of buf to gdb::byte_vector. Initialize
+ with trace_regblock_size if needed. Update uses of buf.
+
+2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
+
+ * tracepoint.h (collection_list) <m_regs_mask>: Change type to
+ std::vector<unsigned char>.
+ * tracepoint.c (collection_list::collection_list): Remove
+ m_regs_mask initializer from initializer list. Resize
+ m_regs_mask using the largest remote register number.
+ (collection_list::add_remote_register): Remove size check on
+ m_regs_mask. Use at to access element.
+ (collection_list::stringify): Change type of temp_buf to
+ gdb::char_vector. Update uses of temp_buf. Resize if needed to
+ stringify the register mask. Use pack_hex_byte for the register
+ mask.
+
+2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
+
+ * tracepoint.h (class collection_list) <add_register>: Remove.
+ <add_remote_register, add_ax_registers, add_local_register>:
+ Declare.
+ <add_memrange>: Add scope parameter.
+ * tracepoint.c (encode_actions_1): Likewise.
+ (collection_list::add_register): Rename to ...
+ (collection_list::add_remote_register): ... this. Update
+ comment.
+ (collection_list::add_ax_registers, add_local_register): New
+ methods.
+ (collection_list::add_memrange): Add scope parameter. Call
+ add_local_register instead of add_register.
+ (finalize_tracepoint_aexpr): New function.
+ (collection_list::collect_symbol): Update calls to add_memrange.
+ Call add_local_register instead of add_register. Call
+ add_ax_registers. Call finalize_tracepoint_aexpr.
+ (encode_actions_1): Get remote regnos for $reg action. Call
+ add_remote_register, add_ax_registers, and add_local_register.
+ Update call to add_memrange. Call finalize_tracepoint_aexpr.
+ (validate_actionline): Call finalize_tracepoint_aexpr.
+
+2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
+
+ * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
+ Replace array buf with gdb::char_vector buf, of size
+ get_remote_packet_size (). Replace references to buf and
+ BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
+ and xsnprintf with snprintf. Raise errors if the buffer is too
+ small.
+
+2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
+
+ * remote.c (remote_target::download_tracepoint): Fix the has_more
+ predicate in the QTDP action list iteration.
+
+2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
+
+ * remote.c (remote_target::download_tracepoint): Fix indentation
+ in for block.
+
+2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * proc-api.c (_initialize_proc_api): Remove c, unused.
+ * procfs.c (procfs_init_inferior): Remove signals, unused.
+ (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
+ unused.
+
+2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
+ Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * linux-nat.c (linux_nat_target::follow_fork): Avoid using
+ 'W_STOPCODE (0)' as this could be ambiguous.
+
2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
* ser-tcp.c (net_open): Fix thinko when deciding whether to