Make remote file transfers interruptible
authorGary Benson <gbenson@redhat.com>
Fri, 21 Aug 2015 16:10:24 +0000 (17:10 +0100)
committerGary Benson <gbenson@redhat.com>
Fri, 21 Aug 2015 16:11:49 +0000 (17:11 +0100)
This commit makes it possible to interrupt remote file transfers.

gdb/ChangeLog
gdb/gdb_bfd.c

index d8b23e089403286b4399cccdfd1a247788b5191b..f5dd5f3e9b1aa17f22efbcc9e8abf0f3abc3216c 100644 (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
index bffe5895b4978d7c707396bb008951dae638bdf5..64712da479f458c60774835decdff2cc725436b0 100644 (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);