Make remote file transfers interruptible
This commit makes it possible to interrupt remote file transfers.
This commit is contained in:
parent
4313b8c0ed
commit
2d7711a367
|
@ -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>
|
2015-08-21 Gary Benson <gbenson@redhat.com>
|
||||||
|
|
||||||
* target.h (struct target_ops) <to_fileio_open>: New argument
|
* target.h (struct target_ops) <to_fileio_open>: New argument
|
||||||
|
|
|
@ -292,6 +292,8 @@ gdb_bfd_iovec_fileio_pread (struct bfd *abfd, void *stream, void *buf,
|
||||||
pos = 0;
|
pos = 0;
|
||||||
while (nbytes > pos)
|
while (nbytes > pos)
|
||||||
{
|
{
|
||||||
|
QUIT;
|
||||||
|
|
||||||
bytes = target_fileio_pread (fd, (gdb_byte *) buf + pos,
|
bytes = target_fileio_pread (fd, (gdb_byte *) buf + pos,
|
||||||
nbytes - pos, offset + pos,
|
nbytes - pos, offset + pos,
|
||||||
&target_errno);
|
&target_errno);
|
||||||
|
|
Loading…
Reference in New Issue