This commit makes it possible to interrupt remote file transfers.
gdb/ChangeLog:
* gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
2015-08-21 Gary Benson <gbenson@redhat.com>
+ * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
+
+2015-08-21 Gary Benson <gbenson@redhat.com>
+
* target.h (struct target_ops) <to_fileio_open>: New argument
warn_if_slow. Update comment. All implementations updated.
(target_fileio_open_warn_if_slow): New declaration.
pos = 0;
while (nbytes > pos)
{
+ QUIT;
+
bytes = target_fileio_pread (fd, (gdb_byte *) buf + pos,
nbytes - pos, offset + pos,
&target_errno);