projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4313b8c
)
Make remote file transfers interruptible
author
Gary Benson
<gbenson@redhat.com>
Fri, 21 Aug 2015 16:10:24 +0000
(17:10 +0100)
committer
Gary Benson
<gbenson@redhat.com>
Fri, 21 Aug 2015 16:11:49 +0000
(17:11 +0100)
This commit makes it possible to interrupt remote file transfers.
gdb/ChangeLog
patch
|
blob
|
history
gdb/gdb_bfd.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index d8b23e089403286b4399cccdfd1a247788b5191b..f5dd5f3e9b1aa17f22efbcc9e8abf0f3abc3216c 100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-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
diff --git
a/gdb/gdb_bfd.c
b/gdb/gdb_bfd.c
index bffe5895b4978d7c707396bb008951dae638bdf5..64712da479f458c60774835decdff2cc725436b0 100644
(file)
--- a/
gdb/gdb_bfd.c
+++ b/
gdb/gdb_bfd.c
@@
-292,6
+292,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);