This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GDB now takes 4 minutes to start up with remote gdbserver target


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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]