mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-02 19:46:09 +08:00
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.
This commit is contained in:
@ -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"));
|
||||
|
Reference in New Issue
Block a user