mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-21 00:15:13 +00: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:
parent
6780fe1095
commit
c92444842b
@ -1,3 +1,8 @@
|
||||
2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
|
||||
|
||||
* ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
|
||||
-1 on error.
|
||||
|
||||
2015-10-26 Doug Evans <dje@google.com>
|
||||
|
||||
PR symtab/17391
|
||||
|
@ -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"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user