forked from Imagelibrary/binutils-gdb
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:
@@ -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
|
||||||
|
|||||||
@@ -253,6 +253,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);
|
||||||
|
|||||||
Reference in New Issue
Block a user