This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb/gdb-7.10-branch] Make remote file transfers interruptible
- From: Gary Benson <gary at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 21 Aug 2015 16:18:26 -0000
- Subject: [binutils-gdb/gdb-7.10-branch] Make remote file transfers interruptible
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ecc06bd425d6fcbb994b7b4d1d6f3c6f705e0784
commit ecc06bd425d6fcbb994b7b4d1d6f3c6f705e0784
Author: Gary Benson <gbenson@redhat.com>
Date: Fri Aug 21 17:10:24 2015 +0100
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:
---
gdb/ChangeLog | 4 ++++
gdb/gdb_bfd.c | 2 ++
2 files changed, 6 insertions(+)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 60ad150..4813c04 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
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
warn_if_slow. Update comment. All implementations updated.
(target_fileio_open_warn_if_slow): New declaration.
diff --git a/gdb/gdb_bfd.c b/gdb/gdb_bfd.c
index 264b611..1a6ccc1 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);