This is the mail archive of the gdb-patches@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]

[OBV] Tweak target_xfer_status_to_string


This patch tweaks target_xfer_status_to_string on comments and argument
name.

gdb:

2014-02-24  Yao Qi  <yao@codesourcery.com>

	* target.c (target_xfer_status_to_string): Rename argument err
	to status.
	* target.h (target_xfer_status_to_string): Update declaration.
	Replace target_xfer_error_to_string with
	target_xfer_status_to_string in comment.
---
 gdb/ChangeLog |    8 ++++++++
 gdb/target.c  |    4 ++--
 gdb/target.h  |    7 ++++---
 3 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1135fdc..9778f7e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,13 @@
 2014-02-24  Yao Qi  <yao@codesourcery.com>
 
+	* target.c (target_xfer_status_to_string): Rename argument err
+	to status.
+	* target.h (target_xfer_status_to_string): Update declaration.
+	Replace target_xfer_error_to_string with
+	target_xfer_status_to_string in comment.
+
+2014-02-24  Yao Qi  <yao@codesourcery.com>
+
 	* mips-linux-nat.c (super_close): Update its type.
 	(mips_linux_close): Pass 'self' to super_close.
 
diff --git a/gdb/target.c b/gdb/target.c
index 60a11dd..25f1cf7 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -880,10 +880,10 @@ target_translate_tls_address (struct objfile *objfile, CORE_ADDR offset)
 }
 
 const char *
-target_xfer_status_to_string (enum target_xfer_status err)
+target_xfer_status_to_string (enum target_xfer_status status)
 {
 #define CASE(X) case X: return #X
-  switch (err)
+  switch (status)
     {
       CASE(TARGET_XFER_E_IO);
       CASE(TARGET_XFER_E_UNAVAILABLE);
diff --git a/gdb/target.h b/gdb/target.h
index 4254609..9143ee2 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -222,12 +222,13 @@ enum target_xfer_status
      unavailable.  */
   TARGET_XFER_E_UNAVAILABLE = -2,
 
-  /* Keep list in sync with target_xfer_error_to_string.  */
+  /* Keep list in sync with target_xfer_status_to_string.  */
 };
 
-/* Return the string form of ERR.  */
+/* Return the string form of STATUS.  */
 
-extern const char *target_xfer_status_to_string (enum target_xfer_status err);
+extern const char *
+  target_xfer_status_to_string (enum target_xfer_status status);
 
 /* Enumeration of the kinds of traceframe searches that a target may
    be able to perform.  */
-- 
1.7.7.6


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