OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [gdb/] [mi/] [mi-cmd-env.c] - Diff between revs 24 and 131

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 24 Rev 131
Line 62... Line 62...
    }
    }
}
}
 
 
 
 
/* Print working directory.  */
/* Print working directory.  */
 
/* JPB: Some picky Ubuntu GCC compilers don't like the result of getcwd being
 
   ignored (even if you cast it to void). So capture the value and ignore
 
   THAT. */
enum mi_cmd_result
enum mi_cmd_result
mi_cmd_env_pwd (char *command, char **argv, int argc)
mi_cmd_env_pwd (char *command, char **argv, int argc)
{
{
 
  char *res;                    /* For getcwd result */
  if (argc > 0)
  if (argc > 0)
    error (_("mi_cmd_env_pwd: No arguments required"));
    error (_("mi_cmd_env_pwd: No arguments required"));
 
 
  if (mi_version (uiout) < 2)
  if (mi_version (uiout) < 2)
    {
    {
Line 76... Line 80...
      return MI_CMD_DONE;
      return MI_CMD_DONE;
    }
    }
 
 
  /* Otherwise the mi level is 2 or higher.  */
  /* Otherwise the mi level is 2 or higher.  */
 
 
  getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
  res = getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));       /* JPB */
  ui_out_field_string (uiout, "cwd", gdb_dirbuf);
  ui_out_field_string (uiout, "cwd", gdb_dirbuf);
 
 
  return MI_CMD_DONE;
  return MI_CMD_DONE;
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.