Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Masaki Muranaka <monaka@monami-software.com>
To: gdb-patches@sourceware.org
Subject: [patch] Crashed cross gdb/MinGW host
Date: Fri, 19 May 2006 10:45:00 -0000	[thread overview]
Message-ID: <0494AFF8-AB9B-40E8-A4D2-C119DEEC5248@monami-software.com> (raw)


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



             reply	other threads:[~2006-05-19  9:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-19 10:45 Masaki Muranaka [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0494AFF8-AB9B-40E8-A4D2-C119DEEC5248@monami-software.com \
    --to=monaka@monami-software.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox