]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Change order of error message printed when gdbserver can't find CWD
authorSergio Durigan Junior <sergiodj@redhat.com>
Wed, 28 Feb 2018 16:43:48 +0000 (11:43 -0500)
committerSergio Durigan Junior <sergiodj@redhat.com>
Thu, 1 Mar 2018 02:20:49 +0000 (21:20 -0500)
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.

gdb/gdbserver/ChangeLog
gdb/gdbserver/server.c

index bf559b04e3a6403cd3c7aaaf64d8cea92b69ac8e..9647fdc44fb2dacb47ce3a95ad90d63d266190be 100644 (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".
index d77ce8d902ad0bf2b673c19691559144da9df3f2..cb8cfe005d7766bdbe768c664ef4bfa89577a9e8 100644 (file)
@@ -3598,7 +3598,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));
     }