summaryrefslogtreecommitdiff
path: root/gdb/gdb_bfd.c
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2015-08-21 17:10:24 +0100
committerGary Benson <gbenson@redhat.com>2015-08-21 17:11:49 +0100
commit2d7711a36720b0bc44fee20d0bf057614ead21c2 (patch)
tree7e3a3ad7abdc9908124aa0df2b552d8918c8c097 /gdb/gdb_bfd.c
parent4313b8c0ed5877feb5034bfff4056e1ccfe221f1 (diff)
Make remote file transfers interruptible
This commit makes it possible to interrupt remote file transfers.
Diffstat (limited to 'gdb/gdb_bfd.c')
-rw-r--r--gdb/gdb_bfd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/gdb_bfd.c b/gdb/gdb_bfd.c
index bffe5895b4..64712da479 100644
--- a/gdb/gdb_bfd.c
+++ b/gdb/gdb_bfd.c
@@ -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);