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>
Wed, 28 Feb 2018 16:43:48 +0000 (11:43 -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 8c3b02e5e41e16336151d684d25f414dd70965c6..ac88a9d7785652205cc8f2b06ea8acd4cf72f90d 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 7745027628cafd85c6fb758d117cec2d1758add0..f373d8a1e8a91b2308286f1c8f4020fc305b3475 100644 (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));
     }
 
This page took 0.033443 seconds and 4 git commands to generate.