+2018-05-22 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (catch_assert_command): Pass empty string instead
+ of NULL for excep_string argument.
+
+2018-05-22 Maciej W. Rozycki <macro@mips.com>
+
+ * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
+ the width of the requested register exceeds the width of the
+ `ptrace' data type.
+
+2018-05-21 Tom Tromey <tom@tromey.com>
+
+ * printcmd.c (output_command): Remove.
+ (output_command_const): Rename to output_command.
+ * valprint.h (output_command): Rename from output_command_const.
+ * tracepoint.c (trace_dump_actions): Call output_command.
+
+2018-05-21 Tom Tromey <tom@tromey.com>
+
+ * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
+ (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
+ * ada-lang.h (create_ada_exception_catchpoint): Update.
+ * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
+ std::string.
+ (create_excep_cond_exprs, ~ada_catchpoint)
+ (should_stop_exception, print_one_exception)
+ (print_mention_exception, print_recreate_exception): Update.
+ (ada_get_next_arg): Remove.
+ (catch_ada_exception_command_split): Use std::string. Change type
+ of "excep_string", "cond_string".
+ (catch_ada_exception_command): Update.
+ (create_ada_exception_catchpoint): Change type of excep_string.
+ (ada_exception_sal): Remove excep_string parameter.
+ (~ada_catchpoint): Remove.
+
+2018-05-21 Tom Tromey <tom@tromey.com>
+
+ * ada-lang.c (ada_collect_symbol_completion_matches): Remove
+ cleanup.
+
+2018-05-21 Tom Tromey <tom@tromey.com>
+
+ * ada-lang.c (ada_exception_message_1, ada_exception_message):
+ Return unique_xmalloc_ptr.
+ (print_it_exception): Update.
+
+2018-05-21 Tom Tromey <tom@tromey.com>
+
+ * tracepoint.c (trace_dump_actions): Use std::string.
+
+2018-05-21 Tom Tromey <tom@tromey.com>
+
+ * symfile.c (reread_symbols): Use std::string for original_name.
+
+2018-05-21 Tom Tromey <tom@tromey.com>
+
+ * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
+ (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
+ constructor.
+
+2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
+ instance to...
+ (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
+ * objfiles.c (get_objfile_bfd_data): Allocate
+ objfile_per_bfd_storage with obstack_new when allocating on
+ obstack.
+
+2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
+
+ * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
+ OBSTACK_ZALLOC.
+ * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
+ * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
+ * mdebugread.c (mdebug_build_psymtabs): Likewise.
+ (add_pending): Likewise.
+ (parse_symbol): Likewise.
+ (parse_partial_symbols): Likewise.
+ (psymtab_to_symtab_1): Likewise.
+ (new_psymtab): Likewise.
+ (elfmdebug_build_psymtabs): Likewise.
+ * minsyms.c (terminate_minimal_symbol_table): Likewise.
+ * objfiles.c (get_objfile_bfd_data): Likewise.
+ (objfile_register_static_link): Likewise.
+ * psymtab.c (allocate_psymtab): Likewise.
+ * stabsread.c (read_member_functions): Likewise.
+ * xcoffread.c (xcoff_end_psymtab): Likewise.
+
+2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
+
+ * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
+ compiler supports std::is_trivially_constructible.
+ * common/poison.h: Include obstack.h.
+ (IsMallocable): Define to is_trivially_constructible if the
+ compiler supports it, define to true_type otherwise.
+ (xobnew): New.
+ (XOBNEW): Redefine.
+ (xobnewvec): New.
+ (XOBNEWVEC): Redefine.
+ * gdb_obstack.h (obstack_zalloc): New.
+ (OBSTACK_ZALLOC): Redefine.
+ (obstack_calloc): New.
+ (OBSTACK_CALLOC): Redefine.
+ (obstack_new): New.
+ * gdbarch.sh: Include gdb_obstack in gdbarch.h.
+ (gdbarch_obstack): New declaration in gdbarch.h, definition in
+ gdbarch.c.
+ (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
+ obstack_calloc/obstack_zalloc.
+ (gdbarch_obstack_zalloc): Remove.
+ * target-descriptions.c (tdesc_data_init): Use obstack_new.
+
+2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
+
+ * stack.c (backtrace_command_1): Remove useless variable int i.
+
+2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
+
+ * stack.c (print_frame_info): Fix comment.
+
+2018-05-18 Tom Tromey <tom@tromey.com>
+
+ * dwarf2read.c (struct dwz_file): Add constructor, initializers.
+ <dwz_bfd>: Now a gdb_bfd_ref_ptr.
+ (~dwarf2_per_objfile): Update
+ (dwarf2_get_dwz_file): Use new.
+ * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
+ unique_ptr.
+
+2018-05-18 Tom Tromey <tom@tromey.com>
+
+ * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
+ unique_ptr.
+ * dwarf2read.c (struct dwp_file): Add constructor and
+ initializers.
+ (open_and_init_dwp_file): Return a unique_ptr.
+ (dwarf2_per_objfile, create_dwp_hash_table)
+ (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
+ (lookup_dwo_unit_in_dwp): Update.
+ (open_and_init_dwp_file, get_dwp_file): Update.
+
+2018-05-18 Tom Tromey <tom@tromey.com>
+
+ * dwarf2read.c (dwarf2_per_objfile): Update.
+ (struct mapped_index): Add initializers.
+ (dwarf2_read_index): Use new.
+ (dw2_symtab_iter_init): Update.
+ * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
+ unique_ptr.
+
+2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
+
+ * dwarf2read.c (mapped_index) <total_size>: Remove.
+
+2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
+
+ * unittests/format_pieces-selftests.c (test_format_specifier):
+ Add ARI comments.
+
+2018-05-18 Tom Tromey <tom@tromey.com>
+
+ * c-typeprint.c (maybe_print_hole): New function.
+ (c_print_type_struct_field_offset): Update.
+ (c_type_print_base_struct_union): Call maybe_print_hole.
+
+2018-05-17 Keith Seitz <keiths@redhat.com>
+
+ * breakpoint.c (build_bpstat_chain): New function, moved from
+ bpstat_stop_status.
+ (bpstat_stop_status): Add optional parameter, `stop_chain'.
+ If no stop chain is passed, call build_bpstat_chain to build it.
+ * breakpoint.h (build_bpstat_chain): Declare.
+ (bpstat_stop_status): Move documentation here from breakpoint.c.
+ * infrun.c (handle_signal_stop): Before eliding inlined frames,
+ build the stop chain and pass it to skip_inline_frames.
+ Pass this stop chain to bpstat_stop_status.
+ * inline-frame.c: Include breakpoint.h.
+ (stopped_by_user_bp_inline_frame): New function.
+ (skip_inline_frames): Add parameter `stop_chain'.
+ Move documention to inline-frame.h.
+ If non-NULL, use stopped_by_user_bp_inline_frame to determine
+ whether the frame should be elided.
+ * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
+ Add moved documentation and update for new parameter.
+
+2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
+
+ PR cli/14975
+ * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
+ unittests/format_pieces-selftests.c.
+ * common/format.h (format_piece) <operator==>: New.
+ (format_pieces) <operator[]>: Remove.
+ * common/format.c (format_pieces::format_pieces): Handle \e.
+ * unittests/format_pieces-selftests.c: New.
+
+2018-05-17 Tom Tromey <tom@tromey.com>
+
+ PR symtab/23010:
+ * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
+ (dw2_instantiate_symtab): Add skip_partial parameter.
+ (dw2_find_last_source_symtab, dw2_map_expand_apply)
+ (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
+ (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
+ (dw2_expand_symtabs_matching_one)
+ (dw2_find_pc_sect_compunit_symtab)
+ (dw2_debug_names_lookup_symbol)
+ (dw2_debug_names_expand_symtabs_for_function): Update.
+ (init_cutu_and_read_dies): Add skip_partial parameter.
+ (process_psymtab_comp_unit, build_type_psymtabs_1)
+ (process_skeletonless_type_unit, load_partial_comp_unit)
+ (psymtab_to_symtab_1): Update.
+ (load_full_comp_unit): Add skip_partial parameter.
+ (process_imported_unit_die, dwarf2_read_addr_index)
+ (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
+ (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
+ (read_signatured_type): Update.
+
+2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
+
+ * value.c (release_value): Remove unused variable.
+ (record_latest_value): Likewise.
+ (access_value_history): Likewise.
+ (preserve_values): Likewise.
+
+2018-05-17 Tom Tromey <tom@tromey.com>
+
+ * extension.h (struct ext_lang_type_printers) <py_type_printers>:
+ Initialize.
+
+2018-05-16 Maciej W. Rozycki <macro@mips.com>
+
+ PR gdb/22286
+ * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
+ Also handle registers whose width is not a multiple of
+ PTRACE_TYPE_RET.
+ (linux_nat_trad_target::store_register): Likewise.
+
+2018-05-16 Tom Tromey <tom@tromey.com>
+
+ * gdbcore.h (core_bfd): Redefine.
+ * corelow.c (core_target::close): Update.
+ (core_target_open): Update.
+ * progspace.h (struct program_space) <cbfd>: Now a
+ gdb_bfd_ref_ptr.
+
+2018-05-16 Tom Tromey <tom@tromey.com>
+
+ PR cli/19551:
+ * symfile-add-flags.h (enum symfile_add_flags)
+ <SYMFILE_NOT_FILENAME>: New constant.
+ * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
+ objfile name from BFD.
+ (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
+ * minidebug.c (find_separate_debug_file_in_section): Put
+ ".gnu_debugdata" into BFD's file name.
+
+2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
+
+ * regcache.c (regcache_read_ftype, regcache_write_ftype):
+ Remove.
+
+2018-05-15 Tamar Christina <tamar.christina@arm.com>
+
+ PR binutils/21446
+ * aarch64-tdep.c (aarch64_analyze_prologue,
+ aarch64_software_single_step, aarch64_displaced_step_copy_insn):
+ Indicate not interested in errors.
+
+2018-05-15 Maciej W. Rozycki <macro@mips.com>
+
+ * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
+ Supply the MIPS_ZERO_REGNUM register.
+
+2018-05-15 Maciej W. Rozycki <macro@mips.com>
+
+ * mips-tdep.c (mask_address_var): Make variable static.
+
+2018-05-14 Tom Tromey <tom@tromey.com>
+
+ * dwarf2read.c (rust_union_quirks): Clear rust_unions.
+
+2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
+ FXSAVE_ADDR for the mxcsr register.
+
+2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
+
+ * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
+
+2018-05-11 Pedro Alves <palves@redhat.com>
+
+ * corelow.c (core_target) <core_target>: No longer inline.
+ Initialize m_core_gdbarch, m_core_vec and build the section table
+ here.
+ <~core_target>: New.
+ <core_gdbarch, get_core_register_section>: New methods.
+ <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
+ factored out from ...
+ <core_data, core_vec, core_gdbarch>: ... these deleted globals.
+ (core_ops): Delete.
+ (sniff_core_bfd): Add gdbarch parameter.
+ (core_close): Delete, merged into ...
+ (core_target::close): ... here. Delete self.
+ (core_close_cleanup): Delete.
+ (core_target_open): Allocate a core_target on the heap. Use a
+ unique_ptr instead of a cleanup. Bits moved into the core_target
+ ctor. Adjust to use core_target methods instead of globals.
+ (get_core_register_section): Rename to ...
+ (core_target::get_core_register_section): ... this and adjust.
+ (struct get_core_registers_cb_data): New.
+ (get_core_registers_cb): Use it. Use bool.
+ (core_target::fetch_registers, core_target::files_info)
+ (core_target::xfer_partial, core_target::read_description)
+ (core_target::pid_to, core_target::thread_name): Adjust to
+ reference class fields instead of globals.
+ * target.h (struct target_ops_deleter, target_ops_up): New.
+
+2018-05-11 Pedro Alves <palves@redhat.com>
+
+ * corefile.c (core_file_command): Move to corelow.c.
+ * corelow.c (the_core_target): Delete.
+ (core_file_command): Moved from corefile.c. Check exec_bfd
+ instead of the_core_target. Use target_detach instead of calling
+ into the_core_target directly.
+ (maybe_say_no_core_file_now): New.
+ (core_target::detach): Use it.
+ (_initialize_corelow): Remove references to the_core_target.
+ * gdbcore.h (the_core_target): Delete.
+
+2018-05-11 Tom Tromey <tromey@redhat.com>
+ Pedro Alves <palves@redhat.com>
+
+ * corefile.c (core_bfd): Remove.
+ * gdbcore.h (core_bfd): Now a macro.
+ * progspace.h (struct program_space) <cbfd>: New field.
+
+2018-05-11 Tom Tromey <tom@tromey.com>
+
+ * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
+ gdb::def_vector.
+
+2018-05-10 Tom Tromey <tom@tromey.com>
+
+ * configure: Rebuild.
+ * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
+
+2018-05-10 Joel Brobecker <brobecker@adacore.com>
+
+ PR server/23158:
+ * regformats/regdat.sh: Adjust script, following the addition
+ of the new expedite_regs parameter to init_target_desc.
+
+2018-05-10 Omair Javaid <omair.javaid@linaro.org>
+
+ PR gdb/23127
+ * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
+ set_gdbarch_significant_addr_bit.
+ * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
+ set_gdbarch_significant_addr_bit.
+ * utils.c (address_significant): Update to sign extend addr.
+
+2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
+
+ * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
+ (xtensa_linux_init_abi): Limit tdep->num_regs by
+ tdep->num_nopriv_regs.
+ * xtensa-tdep.c (xtensa_derive_tdep): Calculate
+ tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
+ not initialized.
+
+2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
+
+ * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
+
+2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
+ (I387_MXCSR_INIT_VAL): New constant.
+ * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
+ buffer if it was supplied by the inferior.
+ * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
+ (i387_xsave_get_clear_bv): New function.
+ (i387_supply_xsave): Only read x87 control registers from the
+ xsave buffer if the feature is enabled, and the state will have
+ been written, otherwise, provide a suitable default.
+ (i387_collect_xsave): Pre-clear all registers in xsave buffer,
+ including x87 control registers. Update control registers if they
+ have changed from the default value, and mark features as enabled
+ as required.
+ * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
+
+2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * spu-tdep.c (info_spu_event_command): Fix output formatting.
+
+2018-05-07 Tom Tromey <tom@tromey.com>
+
+ * configure: Rebuild.
+ * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
+
+2018-05-07 Tom Tromey <tom@tromey.com>
+
+ PR tdep/20362:
+ * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
+ bit. Use correct value for VDIV.
+
+2018-05-04 Tom Tromey <tom@tromey.com>
+
+ * configure: Rebuild.
+ * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
+
+2018-05-04 Tom Tromey <tom@tromey.com>
+
+ * linux-record.c (record_linux_system_call) <case
+ RECORD_SYS_RECVFROM>: Add "break".
+
+2018-05-04 Tom Tromey <tom@tromey.com>
+
+ * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
+ Add missing "break".
+ * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
+ Add missing "break".
+
+2018-05-04 Tom Tromey <tom@tromey.com>
+
+ * rs6000-tdep.c (ppc_process_record_op4)
+ (ppc_process_record_op63): Add fall-through comment.
+
+2018-05-04 Tom Tromey <tom@tromey.com>
+
+ * i386-tdep.c (i386_process_record): Add fall-through comment.
+
+2018-05-04 Tom Tromey <tom@tromey.com>
+
+ * stabsread.c (define_symbol) <case 'p'>: Add fall-through
+ comment.
+
+2018-05-04 Tom Tromey <tom@tromey.com>
+
+ * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
+ * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
+ * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
+ comment.
+ * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
+ comment.
+ * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
+ comment.
+
+2018-05-04 Tom Tromey <tom@tromey.com>
+
+ * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
+
+2018-05-04 Tom Tromey <tom@tromey.com>
+
+ * s390-tdep.c (s390_process_record): Fix fall-through comments.
+ * xcoffread.c (scan_xcoff_symtab): Move comment later.
+ * symfile.c (section_is_mapped): Fix fall-through comment.
+ * stabsread.c (define_symbol, read_member_functions): Fix
+ fall-through comment.
+ * s390-linux-tdep.c (s390_process_record): Fix fall-through
+ comment.
+ * remote.c (remote_wait_as): Fix fall-through comment.
+ * p-exp.y (yylex): Fix fall-through comment.
+ * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
+ comment.
+ * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
+ * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
+ * jv-exp.y (yylex): Fix fall-through comment.
+ * go-exp.y (lex_one_token): Fix fall-through comment.
+ * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
+ fall-through comment.
+ * f-exp.y (yylex): Fix fall-through comment.
+ * dwarf2read.c (process_die): Fix fall-through comments.
+ * dbxread.c (process_one_symbol): Fix fall-through comment.
+ * d-exp.y (lex_one_token): Fix fall-through comment.
+ * cp-name-parser.y (yylex): Fix fall-through comment.
+ * coffread.c (coff_symtab_read): Fix fall-through comment.
+ * c-exp.y (lex_one_token): Fix fall-through comment.
+ * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
+ comment.
+ * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
+ comment.
+
+2018-05-04 Tom Tromey <tom@tromey.com>
+
+ PR python/22730:
+ * NEWS: Mention gdb.execute change.
+ * gdbcmd.h (execute_control_command): Don't declare.
+ * python/python.c (execute_gdb_command): Use read_command_lines_1,
+ execute_control_commands, execute_control_commands_to_string.
+ * cli/cli-script.h (execute_control_commands)
+ (execute_control_commands_to_string): Declare.
+ (execute_control_command): Add from_tty parameter.
+ * cli/cli-script.c (execute_control_commands)
+ (execute_control_commands_to_string): New functions.
+ (execute_user_command): Use execute_control_commands.
+ (execute_control_command_1): Add "from_tty" parameter. Update.
+ (execute_control_command): Likewise.
+
+2018-05-04 Tom Tromey <tom@tromey.com>
+
+ PR python/22731:
+ * NEWS: Mention that breakpoint commands are writable.
+ * python/py-breakpoint.c (bppy_set_commands): New function.
+ (breakpoint_object_getset) <"commands">: Use it.
+
+2018-05-04 Tom Tromey <tom@tromey.com>
+
+ * tracepoint.c (actions_command): Update.
+ * mi/mi-cmd-break.c (mi_command_line_array)
+ (mi_command_line_array_cnt, mi_command_line_array_ptr)
+ (mi_read_next_line): Remove.
+ (mi_cmd_break_commands): Update.
+ * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
+ function_view.
+ * cli/cli-script.c (get_command_line): Update.
+ (process_next_line): Use function_view. Constify.
+ (recurse_read_control_structure, read_command_lines)
+ (read_command_lines_1): Change argument types to function_view.
+ (do_define_command, document_command): Update.
+ * breakpoint.h (check_tracepoint_command): Don't declare.
+ * breakpoint.c (check_tracepoint_command): Remove.
+ (commands_command_1, create_tracepoint_from_upload): Update.
+
+2018-05-04 Tom Tromey <tom@tromey.com>
+
+ PR gdb/11750:
+ * cli/cli-script.h (enum command_control_type) <define_control>:
+ New constant.
+ * cli/cli-script.c (multi_line_command_p): Handle define_control.
+ (build_command_line, execute_control_command_1)
+ (process_next_line): Likewise.
+ (do_define_command): New function, extracted from define_command.
+ (define_command): Use it.
+
+2018-05-04 Tom Tromey <tom@tromey.com>
+
+ * tracepoint.c (actions_command): Update.
+ * cli/cli-script.h (read_command_lines): Update.
+ * cli/cli-script.c (read_command_lines): Constify prompt_arg.
+ (MAX_TMPBUF): Remove define.
+ (define_command): Use string_printf.
+ (document_command): Likewise.
+ * breakpoint.c (commands_command_1): Update.
+
+2018-05-04 Tom Tromey <tom@tromey.com>
+
+ * top.c (execute_command): Update.
+ * cli/cli-script.h (print_command_lines): Now varargs.
+ * cli/cli-script.c (print_command_lines): Now varargs.
+ (execute_control_command_1) <case while_control, case if_control>:
+ Update.
+
+2018-05-04 Tom Tromey <tom@tromey.com>
+
+ * tracepoint.c (all_tracepoint_actions): Rename from
+ all_tracepoint_actions_and_cleanup. Change return type.
+ (actions_command, encode_actions_1, encode_actions)
+ (trace_dump_actions, tdump_command): Update.
+ * remote.c (remote_download_command_source): Update.
+ * python/python.c (gdbpy_eval_from_control_command)
+ (python_command, python_interactive_command): Update.
+ * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
+ * guile/guile.c (guile_command)
+ (gdbscm_eval_from_control_command, guile_command): Update.
+ * compile/compile.c (compile_code_command)
+ (compile_print_command, compile_to_object): Update.
+ * cli/cli-script.h (struct command_lines_deleter): New.
+ (counted_command_line): New typedef.
+ (struct command_line): Add constructor, destructor.
+ <body_list>: Remove.
+ <body_list_0, body_list_1>: New members.
+ (command_line_up): Remove typedef.
+ (read_command_lines, read_command_lines_1, get_command_line):
+ Update.
+ (copy_command_lines): Don't declare.
+ * cli/cli-script.c (build_command_line): Use "new".
+ (get_command_line): Return counted_command_line.
+ (print_command_lines, execute_user_command)
+ (execute_control_command_1, while_command, if_command): Update.
+ (realloc_body_list): Remove.
+ (process_next_line, recurse_read_control_structure): Update.
+ (read_command_lines, read_command_lines_1): Return counted_command_line.
+ (free_command_lines): Use "delete".
+ (copy_command_lines): Remove.
+ (define_command, document_command, show_user_1): Update.
+ * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
+ a counted_command_line.
+ * breakpoint.h (counted_command_line): Remove typedef.
+ (breakpoint_set_commands): Update.
+ * breakpoint.c (check_no_tracepoint_commands)
+ (validate_commands_for_breakpoint): Update.
+ (breakpoint_set_commands): Change commands to be a
+ counted_command_line.
+ (commands_command_1, update_dprintf_command_list)
+ (create_tracepoint_from_upload): Update.
+
+2018-05-04 Tom Tromey <tom@tromey.com>
+
+ * cli/cli-decode.h (cmd_list_element): New constructor.
+ (~cmd_list_element): New destructor.
+ (struct cmd_list_element): Add initializers.
+ * cli/cli-decode.c (do_add_cmd): Use "new".
+ (delete_cmd): Use "delete".
+
+2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Pedro Alves <palves@redhat.com>
+
+ PR breakpoints/19806 and support for PR external/20207.
+ * NEWS: Mention Aarch64 watchpoint improvements.
+ * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
+ watchpoints and PR external/20207 watchpoints.
+ * nat/aarch64-linux-hw-point.c
+ (kernel_supports_any_contiguous_range): New.
+ (aarch64_watchpoint_offset): New.
+ (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
+ (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
+ (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
+ (aarch64_align_watchpoint): New parameters aligned_offset_p and
+ next_addr_orig_p. Support PR external/20207 watchpoints.
+ (aarch64_downgrade_regs): New.
+ (aarch64_dr_state_insert_one_point): New parameters offset and
+ addr_orig.
+ (aarch64_dr_state_remove_one_point): Likewise.
+ (aarch64_handle_breakpoint): Update caller.
+ (aarch64_handle_aligned_watchpoint): Likewise.
+ (aarch64_handle_unaligned_watchpoint): Support addr_orig and
+ aligned_offset.
+ (aarch64_linux_set_debug_regs): Remove const from state. Call
+ aarch64_downgrade_regs.
+ (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
+ * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
+ (DR_CONTROL_MASK): ... this.
+ (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
+ (unsigned int aarch64_watchpoint_offset): New prototype.
+ (aarch64_linux_set_debug_regs): Remove const from state.
+ * utils.c (align_up, align_down): Move to ...
+ * common/common-utils.c (align_up, align_down): ... here.
+ * utils.h (align_up, align_down): Move to ...
+ * common/common-utils.h (align_up, align_down): ... here.
+
+2018-05-04 Joel Brobecker <brobecker@adacore.com>
+
+ * sparc-tdep.c (sparc_structure_return_p): Re-implement to
+ match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
+ (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
+ Re-implement to match the ABI as summarized in GCC's
+ gcc/config/sparc/sparc.c. All callers updated.
+ (sparc32_store_arguments): Remove assertion.
+
+2018-05-04 Tom Tromey <tom@tromey.com>
+
+ * printcmd.c: Don't include tui.h.
+ (decode_format): Use skip_spaces.
+
+2018-05-04 Tom Tromey <tom@tromey.com>
+
+ PR gdb/22619:
+ * printcmd.c (last_count): New global.
+ (x_command): Use saved count when repeating.
+
2018-05-04 Tom Tromey <tom@tromey.com>
* nto-procfs.c (do_closedir_cleanup): Remove.