gdb/Changelog: 2015-12-16 Brian Vandenberg PR gdb/19374 * gdb/procfs.c (procfs_xfer_partial): Added check for ops->beneath != NULL diff --git a/gdb/procfs.c b/gdb/procfs.c index 7b7ff45..7c08bf4 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ --3954,9 +3954,12 @@ procfs_xfer_partial (struct target_ops *ops, enum target_object object, #endif default: - return ops->beneath->to_xfer_partial (ops->beneath, object, annex, + if( ops->beneath ) + return ops->beneath->to_xfer_partial (ops->beneath, object, annex, readbuf, writebuf, offset, len, xfered_len); + else + return TARGET_XFER_E_IO; } }