This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb/gdb-8.1-branch] Change order of error message printed when gdbserver can't find CWD


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=506817a3abd98859eb3474389e756c0253cc28a1

commit 506817a3abd98859eb3474389e756c0253cc28a1
Author: Sergio Durigan Junior <sergiodj@redhat.com>
Date:   Wed Feb 28 11:43:48 2018 -0500

    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.

Diff:
---
 gdb/gdbserver/ChangeLog | 5 +++++
 gdb/gdbserver/server.c  | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index bf559b0..9647fdc 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 d77ce8d..cb8cfe0 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));
     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]