Implement "set cwd" command on GDB
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 11c1ca374ef3896481b15c213f9fe43391edd01d..ea4fc621b02b0c8bc89ffbdcd622eb6a4409b5b8 100644 (file)
@@ -1,3 +1,117 @@
+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
This page took 0.027952 seconds and 4 git commands to generate.