* mi/mi-cmd-stack.c (list_args_or_locals): Workaround
[deliverable/binutils-gdb.git] / gdb / mi / mi-cmd-env.c
index b40fac4750f81d5614d0cbdb874e8a64f35d5f7d..cbc9bdb7ce0aa91095ea6527cdd5f57827c17ae6 100644 (file)
@@ -79,7 +79,10 @@ mi_cmd_env_pwd (char *command, char **argv, int argc)
      
   /* Otherwise the mi level is 2 or higher.  */
 
-  getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
+  if (! getcwd (gdb_dirbuf, sizeof (gdb_dirbuf)))
+    error (_("mi_cmd_env_pwd: error finding name of working directory: %s"),
+           safe_strerror (errno));
+    
   ui_out_field_string (uiout, "cwd", gdb_dirbuf);
 }
 
This page took 0.093771 seconds and 4 git commands to generate.