]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
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:15:28 +0000 (17:15 +0100)
This commit makes it possible to interrupt remote file transfers.

gdb/ChangeLog:

* gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.

gdb/ChangeLog
gdb/gdb_bfd.c

index 60ad15014dd2e9d789214473b9b058cf63387e6d..4813c04063fca6fcac69fc4e93af4f253ed2a613 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 264b6116d2ef8f46f437904f32ba42ab940915f4..1a6ccc18477758deb753f61440a740a33adc46b4 100644 (file)
@@ -253,6 +253,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);