Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] Crashed cross gdb/MinGW host
@ 2006-05-19 10:45 Masaki Muranaka
  2006-05-19 20:46 ` Christopher Faylor
  0 siblings, 1 reply; 6+ messages in thread
From: Masaki Muranaka @ 2006-05-19 10:45 UTC (permalink / raw)
  To: gdb-patches


My sh-elf-gdb on MinGW host was crashed
when I tried to debug using the serial connection.
Here is a patch.

It's possible the another plan to remove writefds
check. There is no support yet for writefds.


- - - -
2006-05-19	Masaki Muranaka <monaka@monami-software.com>
    * mingw-hdep.c (gdb_select)
      Add check if writefds is not NULL.
- - - -
Index: mingw-hdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mingw-hdep.c,v
retrieving revision 1.3
diff -u -p -r1.3 mingw-hdep.c
--- mingw-hdep.c        24 Apr 2006 21:00:13 -0000      1.3
+++ mingw-hdep.c        19 May 2006 09:35:32 -0000
@@ -169,7 +169,7 @@ gdb_select (int n, fd_set *readfds, fd_s
        HANDLE fd_h;
        struct serial *scb;
-      if (!FD_ISSET (fd, readfds) && !FD_ISSET (fd, writefds))
+      if (!FD_ISSET (fd, readfds) && !(writefds && FD_ISSET (fd,  
writefds)))
         continue;
        if (FD_ISSET (fd, readfds))

--
Masaki Muranaka
Monami software



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-06-11 10:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-19 10:45 [patch] Crashed cross gdb/MinGW host Masaki Muranaka
2006-05-19 20:46 ` Christopher Faylor
2006-05-20  1:14   ` Masaki Muranaka
2006-06-10 18:25   ` Daniel Jacobowitz
2006-06-10 20:41     ` Christopher Faylor
2006-06-11 10:00     ` Masaki Muranaka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox