From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29726 invoked by alias); 6 Nov 2013 18:15:34 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 29717 invoked by uid 89); 6 Nov 2013 18:15:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_50,RDNS_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout20.012.net.il Received: from Unknown (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 06 Nov 2013 18:15:32 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MVU00100TD7V900@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Wed, 06 Nov 2013 20:15:23 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MVU0017ZTDNMQ80@a-mtaout20.012.net.il>; Wed, 06 Nov 2013 20:15:23 +0200 (IST) Date: Wed, 06 Nov 2013 19:03:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH v2 14/16] import gnulib sys_wait module In-reply-to: <1383757800-6332-15-git-send-email-tromey@redhat.com> To: Tom Tromey Cc: gdb-patches@sourceware.org, tromey@redhat.com Reply-to: Eli Zaretskii Message-id: <834n7p75xj.fsf@gnu.org> References: <1383757800-6332-1-git-send-email-tromey@redhat.com> <1383757800-6332-15-git-send-email-tromey@redhat.com> X-IsSubscribed: yes X-SW-Source: 2013-11/txt/msg00137.txt.bz2 > From: Tom Tromey > Cc: Tom Tromey > Date: Wed, 6 Nov 2013 10:09:58 -0700 > > This imports the gnulib sys/wait.h module. > It doesn't make any other changes to gdb. Once again: gnulib's sys_wait.h is wrong for MinGW. This: > +#else > +/* Native Windows API. */ > + > +# include /* for SIGTERM */ > + > +/* The following macros apply to an argument x, that is a status of a process, > + as returned by waitpid() or, equivalently, _cwait() or GetExitCodeProcess(). > + This value is simply an 'int', not composed of bit fields. */ > + > +/* When an unhandled fatal signal terminates a process, the exit code is 3. */ > +# define WIFSIGNALED(x) ((x) == 3) > +# define WIFEXITED(x) ((x) != 3) > +# define WIFSTOPPED(x) 0 > + > +/* The signal that terminated a process is not known posthum. */ > +# define WTERMSIG(x) SIGTERM > + > +# define WEXITSTATUS(x) (x) > + > +/* There are no stopping signals. */ > +# define WSTOPSIG(x) 0 > + > +/* There are no core dumps. */ > +# define WCOREDUMP(x) 0 Is simply wrong on Windows.