From: Sergio Durigan Junior Date: Wed, 28 Feb 2018 16:43:48 +0000 (-0500) Subject: Change order of error message printed when gdbserver can't find CWD X-Git-Tag: users/ARM/embedded-gdb-8.1-branch-2018q2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=506817a3abd98859eb3474389e756c0253cc28a1;p=thirdparty%2Fbinutils-gdb.git 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 * server.c (captured_main): Change order of error message printed when the current working directory cannot be found. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index bf559b04e3a..9647fdc44fb 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2018-02-28 Sergio Durigan Junior + + * server.c (captured_main): Change order of error message printed + when the current working directory cannot be found. + 2018-02-28 Sergio Durigan Junior * server.c: Include "filenames.h" and "pathstuff.h". diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index d77ce8d902a..cb8cfe005d7 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -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)); }