URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 24 |
Rev 131 |
Line 313... |
Line 313... |
if (!quit_confirm ())
|
if (!quit_confirm ())
|
error (_("Not confirmed."));
|
error (_("Not confirmed."));
|
quit_force (args, from_tty);
|
quit_force (args, from_tty);
|
}
|
}
|
|
|
|
|
|
/* 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. */
|
static void
|
static void
|
pwd_command (char *args, int from_tty)
|
pwd_command (char *args, int from_tty)
|
{
|
{
|
|
char *res; /* For getcwd result */
|
if (args)
|
if (args)
|
error (_("The \"pwd\" command does not take an argument: %s"), args);
|
error (_("The \"pwd\" command does not take an argument: %s"), args);
|
getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
|
res = getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
|
|
|
if (strcmp (gdb_dirbuf, current_directory) != 0)
|
if (strcmp (gdb_dirbuf, current_directory) != 0)
|
printf_unfiltered (_("Working directory %s\n (canonically %s).\n"),
|
printf_unfiltered (_("Working directory %s\n (canonically %s).\n"),
|
current_directory, gdb_dirbuf);
|
current_directory, gdb_dirbuf);
|
else
|
else
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.