Replace -1 with TARGET_XFER_E_IO
[deliverable/binutils-gdb.git] / gdb / tracepoint.c
index 0a50606b102a9322b299add0ae93af561e9652ee..52538bc169f12274926335269d40742516b58d7c 100644 (file)
@@ -5120,7 +5120,7 @@ tfile_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 (_("tfile_xfer_partial: trace file is read-only"));
@@ -5199,7 +5199,7 @@ tfile_xfer_partial (struct target_ops *ops, enum target_object object,
     }
 
   /* Indicate failure to find the requested memory block.  */
-  return -1;
+  return TARGET_XFER_E_IO;
 }
 
 /* Iterate through the blocks of a trace frame, looking for a 'V'
This page took 0.025655 seconds and 4 git commands to generate.