aboutsummaryrefslogtreecommitdiff
path: root/gdb/ctf.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2015-10-26 22:00:41 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2015-10-26 22:01:45 -0400
commitc92444842b32533b6411230e3554509a09924163 (patch)
tree05fd2a3e5d1087617f7b2eec50a7ad58b73125ed /gdb/ctf.c
parent6780fe1095bf34f92f89a831a577d42b311a6a9f (diff)
downloadgdb-c92444842b32533b6411230e3554509a09924163.zip
gdb-c92444842b32533b6411230e3554509a09924163.tar.gz
gdb-c92444842b32533b6411230e3554509a09924163.tar.bz2
ctf_xfer_partial: Return TARGET_XFER_E_IO instead of -1 on error
Use the enum value instead of the corresponding int value. gdb/ChangeLog: * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of -1 on error.
Diffstat (limited to 'gdb/ctf.c')
-rw-r--r--gdb/ctf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ctf.c b/gdb/ctf.c
index 6c1aede..dc378d1 100644
--- a/gdb/ctf.c
+++ b/gdb/ctf.c
@@ -1273,7 +1273,7 @@ ctf_xfer_partial (struct target_ops *ops, enum target_object object,
{
/* We're only doing regular memory for now. */
if (object != TARGET_OBJECT_MEMORY)
- return -1;
+ return TARGET_XFER_E_IO;
if (readbuf == NULL)
error (_("ctf_xfer_partial: trace file is read-only"));