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