+2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * NEWS (New commands): Mention "set/show cwd".
+ * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
+ "cd" command's help text.
+ * common/common-inferior.h (get_inferior_cwd): New prototype.
+ * infcmd.c (inferior_cwd_scratch): New global variable.
+ (set_inferior_cwd): New function.
+ (get_inferior_cwd): Likewise.
+ (set_cwd_command): Likewise.
+ (show_cwd_command): Likewise.
+ (_initialize_infcmd): Add "set/show cwd" commands.
+ * inferior.h (class inferior) <cwd>: New field.
+ * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
+ (fork_inferior): Change inferior's cwd before its execution.
+ * windows-nat.c (windows_create_inferior): Pass inferior's cwd
+ to CreateProcess.
+
+2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * Makefile.in (SFILES): Add gdb_tilde_expand.c.
+ (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
+ (COMMON_OBS): Add gdb_tilde_expand.o.
+ * common/gdb_tilde_expand.c: New file.
+ * common/gdb_tilde_expand.h: Likewise.
+
+2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
+
+ * gdbarch.sh (objfile): Remove duplicate declaration.
+ * gdbarch.h: Regenerate.
+
+2017-10-03 Tom Tromey <tom@tromey.com>
+
+ * utils.c (internal_vproblem): Use string_vprintf.
+
+2017-10-03 Tom Tromey <tom@tromey.com>
+
+ * printcmd.c (info_symbol_command): Use std::string.
+
+2017-10-03 Tom Tromey <tom@tromey.com>
+
+ * top.c (gdb_safe_append_history): Use std::string.
+
+2017-10-03 Tom Tromey <tom@tromey.com>
+
+ * event-top.c (stdin_event_handler): Update.
+ * main.c (captured_main_1): Update.
+ * top.h (make_delete_ui_cleanup): Remove.
+ (struct ui): Add constructor and destructor.
+ (new_ui, delete_ui): Remove.
+ * top.c (make_delete_ui_cleanup): Remove.
+ (new_ui_command): Use std::unique_ptr.
+ (delete_ui_cleanup): Remove.
+ (ui::ui): Rename from new_ui. Update.
+ (free_ui): Remove.
+ (ui::~ui): Rename from delete_ui. Update.
+
+2017-10-03 Tom Tromey <tom@tromey.com>
+
+ * symfile.c (load_progress): Use gdb::byte_vector.
+
+2017-10-03 Tom Tromey <tom@tromey.com>
+
+ * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
+ declaration.
+ * printcmd.c (x_command): Remove unused declaration.
+ * symfile.c (symbol_file_command): Remove unused declaration.
+
+2017-10-03 Tom Tromey <tom@tromey.com>
+
+ * utils.c (internal_vproblem): Use std::string.
+ (defaulted_query): Likewise.
+
+2017-10-03 Tom Tromey <tom@tromey.com>
+
+ * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
+ * top.c (execute_command_to_string): Update.
+ * utils.c (make_cleanup_restore_page_info): Remove.
+ (do_restore_page_info_cleanup): Remove.
+ (set_batch_flag_and_restore_page_info):
+ New.
+ (make_cleanup_restore_page_info): Remove.
+ (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
+ (~set_batch_flag_and_restore_page_info): New
+ (make_cleanup_restore_uinteger): Remove.
+ (make_cleanup_restore_integer): Remove.
+ (struct restore_integer_closure): Remove.
+ (restore_integer): Remove.
+ * utils.h (struct set_batch_flag_and_restore_page_info): New
+ class.
+ (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
+ (make_cleanup_restore_page_info): Remove.
+ (make_cleanup_restore_uinteger) Remove.
+ (make_cleanup_restore_integer) Remove.
+
+2017-10-03 Tom Tromey <tom@tromey.com>
+
+ * record-full.h (record_full_gdb_operation_disable_set): Return
+ scoped_restore_tmpl<int>.
+ * infrun.c (adjust_pc_after_break): Update.
+ (handle_signal_stop): Update.
+ * record-full.c (record_full_gdb_operation_disable_set): Return
+ scoped_restore_tmpl<int>.
+ (record_full_wait_1, record_full_insert_breakpoint)
+ (record_full_remove_breakpoint, record_full_save)
+ (record_full_goto_insn): Update.
+
+2017-10-02 Tom Tromey <tom@tromey.com>
+
+ PR rust/22236:
+ * rust-lang.c (rust_val_print_str): New function.
+ (val_print_struct): Call it.
+ (rust_subscript): Preserve name of slice type.
+
+2017-10-02 Tom Tromey <tom@tromey.com>
+
+ * rust-lang.c (rust_subscript): Handle slices in
+ EVAL_AVOID_SIDE_EFFECTS case.
+
+2017-10-02 Tom Tromey <tom@tromey.com>
+
+ * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
+
+2017-10-02 Tom Tromey <tom@tromey.com>
+
+ * rust-lang.h (rust_slice_type): Add "extern".
+
+2017-10-02 Tom Tromey <tom@tromey.com>
+ Pedro Alves <palves@redhat.com>
+
+ * ada-lang.h (ada_exc_info::operator<): Make const.
+ (ada_exc_info::operator==): Make const.
+ * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
+ Make const.
+
+2017-09-29 Tom Tromey <tom@tromey.com>
+
+ * target.c (read_whatever_is_readable): Change type of "result".
+ Update.
+ (free_memory_read_result_vector): Remove.
+ (read_memory_robust): Change return type. Update.
+ * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
+ bin2hex, std::string.
+ * target.h (memory_read_result_s): Remove typedef.
+ (free_memory_read_result_vector): Remove.
+ (read_memory_robust): Return std::vector.
+
+2017-09-29 Tom Tromey <tom@tromey.com>
+
+ * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
+
+2017-09-29 Tom Tromey <tom@tromey.com>
+
+ * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
+ * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
+ operator< and operator==.
+ (ada_exceptions_list): Return a std::vector.
+ * ada-lang.c (ada_exc_info::operator<): Rename from
+ compare_ada_exception_info.
+ (ada_exc_info::operator==): New.
+ (sort_remove_dups_ada_exceptions_list): Change type of
+ "exceptions".
+ (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
+ (ada_add_global_exceptions): Likewise.
+ (ada_exceptions_list_1): Return a std::vector.
+ (ada_exceptions_list): Likewise.
+
+2017-09-29 Tom Tromey <tom@tromey.com>
+
+ * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
+ 'std::set *'.
+ (print_one_inferior): Update.
+ (free_vector_of_ints): Remove.
+ (list_available_thread_groups): Change "ids" to std::set.
+ (mi_cmd_list_thread_groups): Update.
+ (struct collect_cores_data) <core>: Now a std::set.
+ (collect_cores): Update.
+ (unique): Remove.
+ (print_one_inferior): Update.
+
+2017-09-29 Tom Tromey <tom@tromey.com>
+
+ * mi/mi-main.c (mi_execute_cli_command): Use std::string.
+ (mi_execute_async_cli_command): Likewise.
+ (mi_cmd_trace_frame_collected): Use field_fmt.
+
+2017-09-29 Tom Tromey <tom@tromey.com>
+
+ * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
+ gdb::byte_vector.
+
+2017-09-29 Tom Tromey <tom@tromey.com>
+
+ * mi/mi-parse.c (mi_parse): Remove unused declaration.
+
+2017-09-29 Tom Tromey <tom@tromey.com>
+
+ * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
+
2017-09-29 Tom Tromey <tom@tromey.com>
* varobj.h (varobj_gen_name): Return std::string.