aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-03-17 09:37:24 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2022-03-17 09:37:59 -0700
commit0e30a3b0f233f828cc3274c2131ed31db275629c (patch)
treee9f927d3bfd6eaad8a8a3054f5063a0ffbfdfdfa /gdb
parent575b4c298a60e1aeae9f34756ba72b31b2f166ec (diff)
downloadgdb-0e30a3b0f233f828cc3274c2131ed31db275629c.zip
gdb-0e30a3b0f233f828cc3274c2131ed31db275629c.tar.gz
gdb-0e30a3b0f233f828cc3274c2131ed31db275629c.tar.bz2
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/corelow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/corelow.c b/gdb/corelow.c
index 1579e6b..001c4f1 100644
--- a/gdb/corelow.c
+++ b/gdb/corelow.c
@@ -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)