Extend "set cwd" to work on gdbserver
[deliverable/binutils-gdb.git] / gdb / infcmd.c
index dbdf273ca5cb556e815b80414b103ed3dbf2e665..187c71f34461ef781c5c6fa6f4a20bc674400af7 100644 (file)
@@ -242,10 +242,9 @@ show_args_command (struct ui_file *file, int from_tty,
   deprecated_show_value_hack (file, from_tty, c, get_inferior_args ());
 }
 
-/* Set the inferior current working directory.  If CWD is NULL, unset
-   the directory.  */
+/* See common/common-inferior.h.  */
 
-static void
+void
 set_inferior_cwd (const char *cwd)
 {
   struct inferior *inf = current_inferior ();
@@ -289,7 +288,8 @@ show_cwd_command (struct ui_file *file, int from_tty,
     fprintf_filtered (gdb_stdout,
                      _("\
 You have not set the inferior's current working directory.\n\
-The inferior will inherit GDB's cwd.\n"));
+The inferior will inherit GDB's cwd if native debugging, or the remote\n\
+server's cwd if remote debugging.\n"));
   else
     fprintf_filtered (gdb_stdout,
                      _("Current working directory that will be used "
This page took 0.028877 seconds and 4 git commands to generate.