From: Gary Benson Date: Fri, 21 Aug 2015 16:10:24 +0000 (+0100) Subject: Make remote file transfers interruptible X-Git-Tag: gdb-7.10-release~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ecc06bd425d6fcbb994b7b4d1d6f3c6f705e0784;p=thirdparty%2Fbinutils-gdb.git Make remote file transfers interruptible This commit makes it possible to interrupt remote file transfers. gdb/ChangeLog: * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 60ad15014dd..4813c04063f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2015-08-21 Gary Benson + + * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call. + 2015-08-21 Gary Benson * target.h (struct target_ops) : New argument diff --git a/gdb/gdb_bfd.c b/gdb/gdb_bfd.c index 264b6116d2e..1a6ccc18477 100644 --- a/gdb/gdb_bfd.c +++ b/gdb/gdb_bfd.c @@ -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);