From 2d7711a36720b0bc44fee20d0bf057614ead21c2 Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Fri, 21 Aug 2015 17:10:24 +0100 Subject: [PATCH] Make remote file transfers interruptible This commit makes it possible to interrupt remote file transfers. --- gdb/ChangeLog | 4 ++++ gdb/gdb_bfd.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d8b23e0894..f5dd5f3e9b 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 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);