Tweak target_xfer_status_to_string
authorYao Qi <yao@codesourcery.com>
Sun, 23 Feb 2014 06:27:17 +0000 (14:27 +0800)
committerYao Qi <yao@codesourcery.com>
Mon, 24 Feb 2014 06:16:36 +0000 (14:16 +0800)
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
gdb/target.c
gdb/target.h

index 1135fdcdf719eac218f4df2ac763cb8251e093ca..9778f7eeb84150fdd83862bc6a704ef995d02b79 100644 (file)
@@ -1,3 +1,11 @@
+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.
index 60a11dddb6c50ea0666713846cf8f267b84f468c..25f1cf7ef3b5a3a8a06ad0a869085e2770444554 100644 (file)
@@ -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);
index 4254609fca844c2f0632ee8227f073dd07d2fef2..9143ee2b30c99ecaee007e92bbb8b097a63cada3 100644 (file)
@@ -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.  */
This page took 0.044483 seconds and 4 git commands to generate.