Change order of error message printed when gdbserver can't find CWD

I forgot to address Pedro's comment about my last patch and change the
order of the message printed when getcwd returns NULL on gdbserver.
This obvious commit does it.

gdb/gdbserver/ChangeLog:
2018-02-28  Sergio Durigan Junior  <sergiodj@redhat.com>

	* server.c (captured_main): Change order of error message printed
	when the current working directory cannot be found.
This commit is contained in:
Sergio Durigan Junior 2018-02-28 11:43:48 -05:00
parent 25e3c82c0e
commit 815615463b
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
* server.c (captured_main): Change order of error message printed
when the current working directory cannot be found.
2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
* server.c: Include "filenames.h" and "pathstuff.h".

View File

@ -3573,7 +3573,7 @@ captured_main (int argc, char *argv[])
current_directory = getcwd (NULL, 0);
if (current_directory == NULL)
{
error (_("%s: error finding working directory"),
error (_("Could not find current working directory: %s"),
safe_strerror (errno));
}