From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30794 invoked by alias); 19 May 2006 09:47:53 -0000 Received: (qmail 30780 invoked by uid 22791); 19 May 2006 09:47:51 -0000 X-Spam-Check-By: sourceware.org Received: from p12018-ipbffx02marunouchi.tokyo.ocn.ne.jp (HELO mail.pizzafactory.jp) (222.147.75.18) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 19 May 2006 09:47:08 +0000 Received: from [192.168.0.2] (unknown [192.168.0.2]) by mail.pizzafactory.jp (Postfix) with ESMTP id 69CBE19AE661 for ; Fri, 19 May 2006 18:47:05 +0900 (JST) Mime-Version: 1.0 (Apple Message framework v750) Content-Transfer-Encoding: 7bit Message-Id: <0494AFF8-AB9B-40E8-A4D2-C119DEEC5248@monami-software.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: gdb-patches@sourceware.org From: Masaki Muranaka Subject: [patch] Crashed cross gdb/MinGW host Date: Fri, 19 May 2006 10:45:00 -0000 X-Mailer: Apple Mail (2.750) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-05/txt/msg00410.txt.bz2 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 * 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