Remove fall throughs in core_target::xfer_partial.
The cases for TARGET_OBJECT_LIBRARIES and TARGET_OBJECT_LIBRARIES_AIX can try to fetch different data objects (such as TARGET_OBJECT_SIGNAL_INFO) if gdbarch methods for the requested data aren't present. Return with TARGET_XFER_E_IO if the gdbarch method isn't present instead.
This commit is contained in:
parent
575b4c298a
commit
0e30a3b0f2
1 changed files with 2 additions and 2 deletions
|
@ -943,7 +943,7 @@ core_target::xfer_partial (enum target_object object, const char *annex,
|
|||
return TARGET_XFER_OK;
|
||||
}
|
||||
}
|
||||
/* FALL THROUGH */
|
||||
return TARGET_XFER_E_IO;
|
||||
|
||||
case TARGET_OBJECT_LIBRARIES_AIX:
|
||||
if (m_core_gdbarch != nullptr
|
||||
|
@ -964,7 +964,7 @@ core_target::xfer_partial (enum target_object object, const char *annex,
|
|||
return TARGET_XFER_OK;
|
||||
}
|
||||
}
|
||||
/* FALL THROUGH */
|
||||
return TARGET_XFER_E_IO;
|
||||
|
||||
case TARGET_OBJECT_SIGNAL_INFO:
|
||||
if (readbuf)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue