]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/ChangeLog
Fix gdb 8.1 Solaris compilation
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
index e8c69f5ba69537de65a1c0386d67ef5a670161f6..02229bc7586098d098cd46de8f1f5f7ef8ff7477 100644 (file)
@@ -1,3 +1,688 @@
+2017-09-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
+       <sol2,sparc>: Likewise.
+       <sol2-64,i386>: Likewise.
+
+       * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
+       -Wdeprecated-declarations on *-*-solaris*.
+       * configure: Regenerate.
+
+       * procfs.c: Include "nat/inferior.h".
+       (procfs_info_proc): Fix typo.
+
+2017-09-21  Kevin Buettner  <kevinb@redhat.com>
+
+       * remote.c (vector): Include.
+       (struct private_thread_info): Add field, thread_handle.
+       (free_private_thread_info): Deallocate storage associated with
+       thread handle.
+       (get_private_info_thread): Initialize `thread_handle' field.
+       (struct thread_item): Add field, thread_handle.
+       (clear_threads_listing_context): Deallocate storage associated
+       with thread handle.
+       (start_thread): Add support for "handle" attribute.
+       (thread_attributes): Add "handle".
+       (remote_get_threads_with_qthreadinfo): Initialize thread_handle
+       field.
+       (remote_update_thread_list): Update thread_handle.
+       (remote_thread_handle_to_thread_info): New function.
+       (init_remote_ops): Initialize to_thread_handle_to_thread_info.
+
+2017-09-21  Kevin Buettner  <kevinb@redhat.com>
+
+       * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
+       function.
+       (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
+       * python/python-internal.h (thread_object_type): Declare.
+
+2017-09-21  Kevin Buettner  <kevinb@redhat.com>
+
+       * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
+       (target_thread_handle_to_thread_info): Declare.
+       * target.c (target_thread_handle_to_thread_info): New function.
+       * target-delegates.c: Regenerate.
+       * gdbthread.h (find_thread_by_handle): Declare.
+       * thread.c (find_thread_by_handle): New function.
+       * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
+       function.
+       (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
+
+2017-09-21  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
+
+2017-09-21  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
+
+2017-09-21  Yao Qi  <yao.qi@linaro.org>
+
+       * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
+       to gdb_target_obs.
+
+2017-09-20  Tom Tromey  <tom@tromey.com>
+
+       * breakpoint.c (struct counted_command_line): Remove.
+       (breakpoint_commands): Update.
+       (alloc_counted_command_line, incref_counted_command_line)
+       (decref_counted_command_line, do_cleanup_counted_command_line)
+       (make_cleanup_decref_counted_command_line): Remove.
+       (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
+       (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
+       (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
+       (save_breakpoints): Update.
+       * breakpoint.h (counted_command_line): Now a typedef to
+       shared_ptr.
+       (struct breakpoint) <commands>: Now a counted_command_line.
+       (struct bpstats) <command>: Likewise.
+
+2017-09-20  Tom Tromey  <tom@tromey.com>
+
+       * breakpoint.c (struct commands_info, do_map_commands_command):
+       Remove.
+       (commands_command_1): Update.
+       (iterate_over_related_breakpoints): Take a function_view.
+       (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
+       (delete_command): Update.
+       (map_breakpoint_numbers): Take a function_view.
+       (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
+       (disable_command): Update.
+       (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
+       (enable_command): Update.
+       (struct disp_data, do_enable_breakpoint_disp)
+       (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
+       (do_map_enable_delete_breakpoint): Remove.
+       (enable_once_command, enable_count_command, enable_delete_command)
+       (delete_trace_variable_command): Update.
+
+2017-09-20  Tom Tromey  <tom@tromey.com>
+
+       * breakpoint.c (~bpstats): Rename from bpstat_free.  Update.
+       (bpstat_clear): Use delete.
+       (bpstats): New constructors.
+       (bpstat_copy, bpstat_stop_status): Use new.
+       (dprintf_after_condition_true): Update.
+       * breakpoint.h (bpstats::bpstats): Add constructors.
+       (bpstats::~bpstats): Add destructor.
+
+2017-09-20  Pedro Alves  <palves@redhat.com>
+
+       * eval.c (make_params): Delete, refactored as ...
+       (class fake_method): ... this new type's ctor.
+       (fake_method::~fake_method): New.
+       (evaluate_subexp_standard): Use 'fake_method'.
+
+2017-09-20  Tom Tromey  <tom@tromey.com>
+
+       * windows-nat.c (get_windows_debug_event, windows_wait)
+       (do_initial_windows_stuff, windows_attach): Update.
+       * utils.c (vwarning, internal_vproblem): Update.
+       (ui_unregister_input_event_handler_cleanup)
+       (prepare_to_handle_input): Remove.
+       (class scoped_input_handler): New.
+       (defaulted_query, prompt_for_continue): Update.
+       * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
+       Update.
+       * top.c (undo_terminal_modifications_before_exit): Update.
+       * target/target.h (target_terminal_init, target_terminal_inferior)
+       (target_terminal_ours): Don't declare.
+       (class target_terminal): New.
+       * target.h (target_terminal_is_inferior, target_terminal_is_ours)
+       (target_terminal_ours_for_output)
+       (make_cleanup_restore_target_terminal): Don't declare.
+       (target_terminal_info): Remove.
+       * target.c (enum terminal_state, terminal_state): Remove.
+       (target_terminal::terminal_state): Define.
+       (target_terminal::init): Rename from target_terminal_init.
+       (target_terminal::inferior): Rename from
+       target_terminal_inferior.
+       (target_terminal::ours): Rename from target_terminal_ours.
+       (target_terminal::ours_for_output): Rename from
+       target_terminal_ours_for_output.
+       (target_terminal::info): New method.
+       (cleanup_restore_target_terminal)
+       (make_cleanup_restore_target_terminal): Remove.
+       * solib.c (handle_solib_event): Update.
+       * remote.c (remote_serial_quit_handler): Update.
+       (remote_terminal_inferior, remote_wait_as): Update.
+       * record-full.c (record_full_wait_1): Update.
+       * nto-procfs.c (procfs_create_inferior): Update.
+       * nat/fork-inferior.c (startup_inferior): Update.
+       * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
+       (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
+       (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
+       (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
+       (mi_breakpoint_created, mi_breakpoint_deleted)
+       (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
+       (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
+       (mi_user_selected_context_changed, report_initial_inferior):
+       Update.
+       * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
+       (linux_nat_terminal_inferior): Update.
+       * infrun.c (follow_fork_inferior)
+       (handle_vfork_child_exec_or_exit, do_target_resume)
+       (check_curr_ui_sync_execution_done, handle_inferior_event_1)
+       (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
+       Update.
+       * inflow.c (child_terminal_init, info_terminal_command): Update.
+       * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
+       (attach_command): Update.
+       * infcall.c (call_thread_fsm_should_stop): Update.
+       * gnu-nat.c (gnu_attach): Update.
+       * extension.c (struct active_ext_lang_state)
+       (restore_active_ext_lang): Update.
+       * exceptions.c (print_flush): Update.
+       * event-top.c (async_enable_stdin, default_quit_handler): Update.
+       (struct quit_handler_cleanup_data, restore_quit_handler)
+       (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
+       Remove.
+       * cp-support.c (gdb_demangle): Update.
+       * breakpoint.c (update_inserted_breakpoint_locations)
+       (insert_breakpoint_locations, handle_jit_event)
+       (disable_breakpoints_in_unloaded_shlib): Update.
+       * annotate.c (annotate_breakpoints_invalid)
+       (annotate_frames_invalid): Update.
+
+2017-09-20  Tom Tromey  <tom@tromey.com>
+
+       * main.c (catch_command_errors): Rename from
+       catch_command_errors_const.
+       (captured_main_1): Update.
+
+2017-09-20  Pedro Alves  <palves@redhat.com>
+
+       * cli/cli-cmds.c (list_command): Use print_sal_location.
+       (print_sal_location): New function.
+       (ambiguous_line_spec): Use print_sal_location.
+       * linespec.c (symbol_to_sal): Record the symbol in the sal.
+       * symtab.c (find_function_start_sal): Likewise.
+       * symtab.h (symtab_and_line::symbol): New field.
+
+2017-09-20  Pedro Alves  <palves@redhat.com>
+
+       * linespec.c (minsym_found): Handle non-text minsyms.
+       (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
+
+2017-09-20  Walfred Tedeschi  <walfred.tedeschi@intel.com>
+
+       * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
+       backslash.
+
+2017-09-20  Walfred Tedeschi  <walfred.tedeschi@intel.com>
+
+       * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
+       vmovups instead vmovaps.
+       (move_zmm_data_to_memory): Use vmovups instead vmovaps.
+
+2017-09-19  John Baldwin  <jhb@FreeBSD.org>
+
+       * NEWS (Changes since GDB 8.0): Add starti.
+       * infcmd.c (enum run_break): New.
+       (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
+       case.
+       (run_command): Use enum run_how.
+       (start_command): Likewise.
+       (starti_command): New function.
+       (RUN_ARGS_HELP): New macro.
+       (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
+       commands.  Add starti command.
+
+2017-09-19  Yao Qi  <yao.qi@linaro.org>
+
+       * Makefile.in (monitor.o): Remove the rule.
+
+2017-09-19  Yao Qi  <yao.qi@linaro.org>
+
+       * annotate.h (struct annotate_arg_emitter): Use
+       DISABLE_COPY_AND_ASSIGN.
+       * common/refcounted-object.h (refcounted_object): Likewise.
+       * completer.h (struct completion_result): Likewise.
+       * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
+       * filename-seen-cache.h (filename_seen_cache): Likewise.
+       * gdbcore.h (thread_section_name): Likewise.
+       * gdb_regex.h (compiled_regex): Likewise.
+       * gdbthread.h (scoped_restore_current_thread): Likewise.
+       * inferior.h (scoped_restore_current_inferior): Likewise.
+       * jit.c (jit_reader): Likewise.
+       * linespec.h (struct linespec_result): Likewise.
+       * mi/mi-parse.h (struct mi_parse): Likewise.
+       * nat/fork-inferior.c (execv_argv): Likewise.
+       * progspace.h (scoped_restore_current_program_space): Likewise.
+       * python/python-internal.h (class gdbpy_enter): Likewise.
+       * regcache.h (regcache): Likewise.
+       * target-descriptions.c (struct tdesc_reg): Likewise.
+       (struct tdesc_type): Likewise.
+       (struct tdesc_feature): Likewise.
+       * ui-out.h (ui_out_emit_type): Likewise.
+
+2017-09-18  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
+       label abort_expression.
+
+2017-09-16  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * common/buffer.c (buffer_xml_printf): Adjust.
+       * common/xml-utils.c (xml_escape_text): Change return type to
+       std::string, update code accordingly.
+       * common/xml-utils.h (xml_escape_text): Change return type to
+       std::string.
+       * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
+       * windows-tdep.c (windows_xfer_shared_library): Adjust.
+       * unittests/xml-utils-selftests.c (test_xml_escape_text):
+       Adjust.
+
+2017-09-16  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
+       (SUBDIR_UNITTESTS_OBS): Add new object file.
+       * unittests/xml-utils-selftests.c: New file.
+
+2017-09-16  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * common/selftest.h (selftest): New struct/interface.
+       (register_test): Add name parameter, add new overload.
+       (run_tests): Add filter parameter.
+       (for_each_selftest_ftype): New typedef.
+       (for_each_selftest): New declaration.
+       * common/selftest.c (tests): Change type to
+       map<string, unique_ptr<selftest>>.
+       (simple_selftest): New struct.
+       (register_test): New function.
+       (register_test): Add name parameter and use it.
+       (run_tests): Add filter parameter and use it.  Add prints.
+       Adjust to vector -> map change.
+       * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
+       registering selftests.
+       * arm-tdep.c (_initialize_arm_tdep): Likewise.
+       * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
+       * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
+       * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
+       * findvar.c (_initialize_findvar): Likewise.
+       * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
+       * maint.c (maintenance_selftest): Update call to run_tests.
+       (maintenance_info_selftests): New function.
+       (_initialize_maint_cmds): Register "maintenance info selftests"
+       command.  Update "maintenance selftest" doc.
+       * regcache.c (_initialize_regcache): Add names when registering
+       selftests.
+       * rust-exp.y (_initialize_rust_exp): Likewise.
+       * selftest-arch.c (gdbarch_selftest): New struct.
+       (gdbarch_tests): Remove.
+       (register_test_foreach_arch): Add name parameter.  Call
+       register_test.
+       (tests_with_arch): Remove, move most content to
+       gdbarch_selftest::operator().
+       (_initialize_selftests_foreach_arch): Remove.
+       * selftest-arch.h (register_test_foreach_arch): Add name
+       parameter.
+       (run_tests_with_arch): New declaration.
+       * utils-selftests.c (_initialize_utils_selftests): Add names
+       when registering selftests.
+       * utils.c (_initialize_utils): Likewise.
+       * unittests/array-view-selftests.c
+       (_initialize_array_view_selftests): Likewise.
+       * unittests/environ-selftests.c (_initialize_environ_selftests):
+       Likewise.
+       * unittests/function-view-selftests.c
+       (_initialize_function_view_selftests): Likewise.
+       * unittests/offset-type-selftests.c
+       (_initialize_offset_type_selftests): Likewise.
+       * unittests/optional-selftests.c
+       (_initialize_optional_selftests): Likewise.
+       * unittests/scoped_restore-selftests.c
+       (_initialize_scoped_restore_selftests): Likewise.
+       * NEWS: Document "maintenance selftest" and "maint info
+       selftests".
+
+2017-09-16  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
+       scoped_restore.
+
+2017-09-16  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * mi/mi-main.c (mi_load_progress): Make uiout variable
+       a unique_ptr.
+
+2017-09-15  Pedro Alves  <palves@redhat.com>
+
+       * compile/compile-c-types.c (convert_enum, convert_int)
+       (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
+
+2017-09-15  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * dwarf2read.c (copy_string): Remove.
+       (parse_macro_definition): Replace copy_string with savestring.
+
+2017-09-15  Yao Qi  <yao.qi@linaro.org>
+
+       * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
+       gdb_target_obs.
+       (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
+       Likewise.
+       (i[34567]86-*-linux*): Likewise.
+
+2017-09-14  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * dwarf2expr.h (dwarf_stack_value): Add constructor.
+       (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
+       <stack>: Change type to std::vector.
+       <stack_len, stack_allocated>: Remove.
+       <grow_stack>: Remove.
+       * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
+       (dwarf_expr_context::~dwarf_expr_context): Remove.
+       (dwarf_expr_context::grow_stack): Remove.
+       (dwarf_expr_context::push): Adjust.
+       (dwarf_expr_context::pop): Adjust.
+       (dwarf_expr_context::fetch): Adjust.
+       (dwarf_expr_context::fetch_in_stack_memory): Adjust.
+       (dwarf_expr_context::stack_empty_p): Adjust.
+       (dwarf_expr_context::execute_stack_op): Adjust.
+
+2017-09-14  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
+       return type to bool.
+       * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
+
+2017-09-14  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
+       Change type to bool.
+       (dwarf_stack_value) <in_stack_memory>: Likewise.
+       (dwarf_expr_context) <push_address>: Change parameter type to
+       bool.
+       <fetch_in_stack_memory>: Change return type to bool.
+       <push>: Change parameter type to bool.
+       * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
+       to bool.
+       (dwarf_expr_context::push_address): Likewise.
+       (dwarf_expr_context::fetch_in_stack_memory): Change return type
+       to bool.
+       (dwarf_expr_context::execute_stack_op): Adjust.
+       * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
+
+2017-09-14  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * dwarf2expr.h (struct dwarf_expr_piece): Move up.
+       (struct dwarf_expr_context) <n_pieces>: Remove.
+       <pieces>: Change type to std::vector.
+       * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
+       (dwarf_expr_context::~dwarf_expr_context): Don't manually free
+       pieces.
+       (dwarf_expr_context::add_piece): Adjust.
+       * dwarf2loc.c (struct piece_closure): Initialize fields.
+       <n_pieces>: Remove.
+       <pieces>: Change type to std::vector.
+       (allocate_piece_closure): Adjust, change parameter to
+       std::vector rvalue and std::move it to piece_closure.
+       (rw_pieced_value): Adjust.
+       (check_pieced_synthetic_pointer): Adjust.
+       (indirect_synthetic_pointer): Adjust.
+       (coerce_pieced_ref): Adjust.
+       (free_pieced_value_closure):  Adjust.  Use delete to free
+       piece_closure.
+       (dwarf2_evaluate_loc_desc_full): Adjust.  std::move ctx.pieces
+       to allocate_piece_closure.
+       (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
+
+2017-09-12  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * probe.h (probe_ops_cp): Remove typedef.
+       (DEF_VEC_P (probe_ops_cp)): Remove.
+       (all_probe_ops): Change type to std::vector.
+       * probe.c (info_probes_for_ops): Adjust to vector change.
+       (probe_linespec_to_ops): Likewise.
+       (all_probe_ops): Change type to std::vector.
+       (_initialize_probe): Adjust to vector change.
+       * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
+       * elfread.c (elf_get_probes): Likewise.
+       * stap-probe.c (_initialize_stap_probe): Likewise.
+
+2017-09-12  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * probe.h (struct bound_probe): Define constructors.
+       * probe.c (bound_probe_s): Remove typedef.
+       (DEF_VEC_O (bound_probe_s)): Remove VEC.
+       (collect_probes): Change return type to std::vector, remove
+       cleanup.
+       (compare_probes): Return bool, change parameter type.  Change
+       semantic to "less than".
+       (gen_ui_out_table_header_info): Change parameter to std::vector
+       and update.
+       (exists_probe_with_pops): Likewise.
+       (info_probes_for_ops): Update to std::vector change.
+       (enable_probes_command): Likewise.
+       (disable_probes_command): Likewise.
+
+2017-09-12  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * probe.h (struct probe_ops) <get_probes>: Change parameter from
+       vec to std::vector.
+       * probe.c (parse_probes_in_pspace): Update.
+       (find_probes_in_objfile): Update.
+       (find_probe_by_pc): Update.
+       (collect_probes): Update.
+       (probe_any_get_probes): Update.
+       * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
+       return type to reference to std::vector.
+       * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
+       std::vector and update.
+       (dtrace_process_dof): Likewise.
+       (dtrace_get_probes): Likewise.
+       * elfread.c (elf_get_probes): Change return type to std::vector,
+       store an std::vector in bfd_data.
+       (probe_key_free): Update to std::vector.
+       * stap-probe.c (handle_stap_probe): Change parameter to
+       std::vector and update.
+       (stap_get_probes): Likewise.
+       * symfile-debug.c (debug_sym_get_probes): Change return type to
+       std::vector and update.
+
+2017-09-11  Tom Tromey  <tom@tromey.com>
+
+       * breakpoint.c (program_breakpoint_here_p): Update.
+       * target.c (make_scoped_restore_show_memory_breakpoints): Rename
+       from make_show_memory_breakpoints_cleanup.  Return a
+       scoped_restore_tmpl<int>.
+       (restore_show_memory_breakpoints): Remove.
+       * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
+       * mem-break.c (memory_validate_breakpoint): Update.
+       * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
+       (ia64_memory_remove_breakpoint): Update.
+       (ia64_breakpoint_from_pc): Update.
+       * target.h (make_scoped_restore_show_memory_breakpoints): Rename
+       from make_show_memory_breakpoints_cleanup.
+
+2017-09-11  Tom Tromey  <tom@tromey.com>
+
+       * d-namespace.c (d_lookup_symbol): Use std::string.
+       (find_symbol_in_baseclass): Likewise.
+
+2017-09-11  Tom Tromey  <tom@tromey.com>
+
+       * ctf.c (ctf_start): Use std::string.
+
+2017-09-11  Tom Tromey  <tom@tromey.com>
+
+       * ada-lang.c (is_known_support_routine): Update.
+       (ada_unhandled_exception_name_addr_from_raise): Update.
+       * guile/scm-frame.c (gdbscm_frame_name): Update.
+       * python/py-frame.c (frapy_name): Update.
+       (frapy_function): Update.
+       * stack.h (find_frame_funname): Update.
+       * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
+       (print_frame): Update.
+
+2017-09-11  Tom Tromey  <tom@tromey.com>
+
+       * findcmd.c (put_bits): Take a gdb::byte_vector.
+       (parse_find_args): Return gdb::byte_vector.  "args" now const.
+       Remove "pattern_bufp" and "pattern_lenp" parameters.  Remove
+       cleanups.
+       (find_command): Update.
+
+2017-09-11  Tom Tromey  <tom@tromey.com>
+
+       * cli/cli-script.c (class scoped_restore_hook_in): New.
+       (clear_hook_in_cleanup): Remove.
+       (execute_cmd_pre_hook, execute_cmd_post_hook): Use
+       scoped_restore_hook_in.
+
+2017-09-11  Tom Tromey  <tom@tromey.com>
+
+       * cli/cli-script.c (restore_interp): Remove.
+       (read_command_lines): Use scoped_restore_interp.
+       * interps.c (scoped_restore_interp::set_temp): Rename from
+       interp_set_temp.
+       * interps.h (class scoped_restore_interp): New.
+       (interp_set_temp): Remove.
+
+2017-09-11  Tom Tromey  <tom@tromey.com>
+
+       * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
+       (mi_cmd_catch_exception, mi_catch_load_unload): Update.
+       * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
+       scoped_restore.
+       (mi_cmd_break_insert_1): Update.
+       * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
+       scoped_restore.
+
+2017-09-11  Tom Tromey  <tom@tromey.com>
+
+       * demangle.c (demangle_command): Update.
+       * breakpoint.c (disable_command): Update.
+       (enable_command): Update.
+       (find_location_by_number): Make "number" const.  Use
+       get_number_trailer.
+       * cli/cli-utils.c (extract_arg): Return std::string.
+       * probe.c (parse_probe_linespec): Update.  Change types.
+       (collect_probes): Take string arguments.
+       (parse_probe_linespec): Likewise.
+       (info_probes_for_ops): Update.
+       (enable_probes_command): Update.
+       (disable_probes_command): Update.
+       * break-catch-sig.c (catch_signal_split_args): Update.
+       * mi/mi-parse.c (mi_parse): Update.
+
+2017-09-11  Tom Tromey  <tom@tromey.com>
+
+       * language.h (language_enum): Make argument const.
+       * language.c (language_enum): Make argument const.
+
+2017-09-11  Tom Tromey  <tom@tromey.com>
+
+       * common/common-utils.h (skip_to_space): Remove macro, redeclare
+       as function.
+       (skip_to_space): Rename from skip_to_space_const.
+       * common/common-utils.c (skip_to_space): New function.
+       (skip_to_space): Rename from skip_to_space_const.
+       * cli/cli-utils.h (get_number): Rename from get_number_const.
+       (extract_arg): Rename from extract_arg_const.
+       * cli/cli-utils.c (get_number): Rename from get_number_const.
+       (extract_arg): Rename from extract_arg_const.
+       (number_or_range_parser::get_number): Use ::get_number.
+       * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
+       break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
+       cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
+       completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
+       linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
+       minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
+       python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
+       stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
+
+2017-09-11  Tom Tromey  <tom@tromey.com>
+
+       * python/python.c (do_start_initialization): Use
+       py-event-types.def to initialize types.
+       Define all object type structures.
+       * python/python-internal.h: Don't declare event initialization
+       functions.
+       * python/py-threadevent.c (thread_event_object_type): Don't
+       define.
+       * python/py-stopevent.c (stop_event_object_type): Don't define.
+       * python/py-signalevent.c (signal_event_object_type): Don't
+       declare or define.
+       * python/py-newobjfileevent.c (new_objfile_event_object_type)
+       (clear_objfiles_event_object_type): Don't declare or define.
+       * python/py-infevents.c (inferior_call_pre_event_object_type)
+       (inferior_call_post_event_object_type)
+       (register_changed_event_object_type)
+       (memory_changed_event_object_type): Don't declare or define.
+       * python/py-inferior.c (new_thread_event_object_type)
+       (new_inferior_event_object_type)
+       (inferior_deleted_event_object_type): Don't declare or define.
+       * python/py-exitedevent.c (exited_event_object_type): Don't
+       declare or define.
+       * python/py-evts.c (gdbpy_initialize_py_events): Use
+       py-all-events.def.
+       * python/py-events.h (thread_event_object_type): Don't declare.
+       (events_object): Use py-all-events.def.
+       * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove.  Use
+       py-event-types.def.
+       * python/py-event-types.def: New file.
+       * python/py-continueevent.c (create_continue_event_object): Don't
+       declare or define.
+       * python/py-bpevent.c (breakpoint_event_object_type): Don't
+       declare or define.
+       * python/py-all-events.def: New file.
+
+2017-09-11  Tom Tromey  <tom@tromey.com>
+
+       * python/py-threadevent.c (create_thread_event_object): Return
+       gdbpy_ref.
+       * python/py-stopevent.h (create_stop_event_object)
+       (create_breakpoint_event_object, create_signal_event_object):
+       Update.
+       * python/py-stopevent.c (create_stop_event_object): Return
+       gdbpy_ref.
+       (emit_stop_event): Update.
+       * python/py-signalevent.c (create_signal_event_object): Return
+       gdbpy_ref.
+       * python/py-infevents.c (create_inferior_call_event_object):
+       Update.
+       * python/py-event.h (create_event_object)
+       (create_thread_event_object): Update.
+       * python/py-event.c (create_event_object): Return gdbpy_ref.
+       * python/py-continueevent.c: Return gdbpy_ref.
+       * python/py-bpevent.c (create_breakpoint_event_object): Return
+       gdbpy_ref.
+
+2017-09-11  Tom Tromey  <tom@tromey.com>
+
+       PR python/15622:
+       * NEWS: Add entry.
+       * python/python.c (do_start_initialization): Initialize new event
+       types.
+       * python/python-internal.h (gdbpy_initialize_new_inferior_event)
+       (gdbpy_initialize_inferior_deleted_event)
+       (gdbpy_initialize_new_thread_event): Declare.
+       * python/py-threadevent.c (create_thread_event_object): Add option
+       "thread" parameter.
+       * python/py-inferior.c (new_thread_event_object_type)
+       (new_inferior_event_object_type)
+       (inferior_deleted_event_object_type): Declare.
+       (python_new_inferior, python_inferior_deleted): New functions.
+       (add_thread_object): Emit new_thread event.
+       (gdbpy_initialize_inferior): Attach new functions to corresponding
+       observers.
+       (new_thread, new_inferior, inferior_deleted): Define new event
+       types.
+       * python/py-evts.c (gdbpy_initialize_py_events): Add new
+       registries.
+       * python/py-events.h (events_object) <new_inferior,
+       inferior_deleted, new_thread>: New fields.
+       * python/py-event.h (create_thread_event_breakpoint): Add optional
+       "thread" parameter.
+
+2017-09-10  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
+       check current_ui instead.
+       (internal_vproblem): Likewise.
+
 2017-09-09  Simon Marchi  <simon.marchi@ericsson.com>
 
        * thread.c (print_thread_info_1): Remove unnecessary calls to