summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio Durigan Junior <sergiodj@redhat.com>2018-02-28 11:43:48 -0500
committerSergio Durigan Junior <sergiodj@redhat.com>2018-02-28 11:43:48 -0500
commit815615463b1171cbff7c5e54f62fc708cc1bbc99 (patch)
tree640ee4c9979cf7357d765555e448b43872f6ddce
parent25e3c82c0e927398e759e2d5e35623012b8683f7 (diff)
downloadbinutils-gdb-815615463b1171cbff7c5e54f62fc708cc1bbc99.tar.gz
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.
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/server.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 8c3b02e5e41..ac88a9d7785 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,10 @@
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".
(program_name): Delete variable.
(program_path): New anonymous class.
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c
index 7745027628c..f373d8a1e8a 100644
--- a/gdb/gdbserver/server.c
+++ b/gdb/gdbserver/server.c
@@ -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));
}