aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2014-02-23 12:24:08 +0800
committerYao Qi <yao@codesourcery.com>2014-02-24 11:27:37 +0800
commit5c328c057e963faacc50796c650a5feb06762c67 (patch)
tree8e9c4f388e27f1997f3e95558ed8700b9a0650d9 /gdb/target.h
parent605a662f6ad5841f77467727bad6611234f232cc (diff)
downloadgdb-5c328c057e963faacc50796c650a5feb06762c67.zip
gdb-5c328c057e963faacc50796c650a5feb06762c67.tar.gz
gdb-5c328c057e963faacc50796c650a5feb06762c67.tar.bz2
Remove TARGET_XFER_STATUS_ERROR_P
This patch removes macro TARGET_XFER_STATUS_ERROR_P, as Pedro pointed out during patches review that TARGET_XFER_STATUS_ERROR_P tends to be unnecessary. gdb: 2014-02-24 Yao Qi <yao@codesourcery.com> * target.h (TARGET_XFER_STATUS_ERROR_P): Remove. * corefile.c (read_memory): Adjusted. * target.c (target_write_with_progress): Adjusted.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/target.h b/gdb/target.h
index 6cc1337..4254609 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -225,8 +225,6 @@ enum target_xfer_status
/* Keep list in sync with target_xfer_error_to_string. */
};
-#define TARGET_XFER_STATUS_ERROR_P(STATUS) ((STATUS) < TARGET_XFER_EOF)
-
/* Return the string form of ERR. */
extern const char *target_xfer_status_to_string (enum target_xfer_status err);