Make remote file transfers interruptible

This commit makes it possible to interrupt remote file transfers.
This commit is contained in:
Gary Benson 2015-08-21 17:10:24 +01:00
parent 4313b8c0ed
commit 2d7711a367
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -292,6 +292,8 @@ gdb_bfd_iovec_fileio_pread (struct bfd *abfd, void *stream, void *buf,
pos = 0;
while (nbytes > pos)
{
QUIT;
bytes = target_fileio_pread (fd, (gdb_byte *) buf + pos,
nbytes - pos, offset + pos,
&target_errno);