This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: GDB now takes 4 minutes to start up with remote gdbserver target
- From: Gary Benson <gbenson at redhat dot com>
- To: Sandra Loosemore <sandra at codesourcery dot com>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Fri, 24 Jul 2015 11:34:06 +0100
- Subject: Re: GDB now takes 4 minutes to start up with remote gdbserver target
- Authentication-results: sourceware.org; auth=none
- References: <55B1768E dot 9090309 at codesourcery dot com> <55B1A4FC dot 9010403 at codesourcery dot com>
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);