[c++,03/12] ctf_xfer_partial: Return TARGET_XFER_E_IO instead of -1 on error
Commit Message
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.
---
gdb/ctf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
I pushed this one, I consider it obvious enough.
@@ -1279,7 +1279,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"));