Re: GDB now takes 4 minutes to start up with remote gdbserver target
Gary Benson <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
Sandra Loosemore wrote:
> (4) GDB doesn't respond to ^C during the 4 minutes it is doing
> whatever it's doing to transfer files. It just sits there acting
> catatonic.
Sandra, could you tell me if this patch makes GDB interruptible for
you?
Thanks,
Gary
--
diff --git a/gdb/gdb_bfd.c b/gdb/gdb_bfd.c
index 1781d80..15ea03b 100644
--- a/gdb/gdb_bfd.c
+++ b/gdb/gdb_bfd.c
@@ -252,6 +252,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);