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