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.
This commit is contained in:
Gary Benson
2015-08-21 17:10:24 +01:00
parent 290f582b49
commit ecc06bd425
2 changed files with 6 additions and 0 deletions

View 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

View 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);