This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 2/2] Make remote file transfers interruptible
- From: Gary Benson <gbenson at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Sandra Loosemore <sandra at codesourcery dot com>, Doug Evans <dje at google dot com>, Pedro Alves <palves at redhat dot com>, Jan Kratochvil <jan dot kratochvil at redhat dot com>, Andrà PÃnitz <apoenitz at t-online dot de>, Paul_Koning at Dell dot com
- Date: Wed, 5 Aug 2015 16:28:16 +0100
- Subject: [PATCH 2/2] Make remote file transfers interruptible
- Authentication-results: sourceware.org; auth=none
- References: <1438788496-32246-1-git-send-email-gbenson at redhat dot com>
This commit makes it possible to interrupt slow remote file transfers.
gdb/ChangeLog:
* gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
---
gdb/ChangeLog | 4 ++++
gdb/gdb_bfd.c | 2 ++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/gdb/gdb_bfd.c b/gdb/gdb_bfd.c
index b511777..575bd61 100644
--- a/gdb/gdb_bfd.c
+++ b/gdb/gdb_bfd.c
@@ -277,6 +277,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);
--
1.7.1