From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29419 invoked by alias); 14 Jul 2014 08:54:27 -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 29408 invoked by uid 89); 14 Jul 2014 08:54:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx2.suse.de Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Mon, 14 Jul 2014 08:54:25 +0000 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 5C6E0AB5D; Mon, 14 Jul 2014 08:54:22 +0000 (UTC) From: Andreas Schwab To: Gary Benson Cc: Pierre Muller , gdb-patches@sourceware.org, "'Andrew Burgess'" , "'Doug Evans'" , "'Eli Zaretskii'" , "'Florian Weimer'" , "'Mark Kettenis'" , "'Pedro Alves'" , "'Tom Tromey'" , "'Corinna Vinschen'" Subject: Re: Cygwin build failure following [PATCH 3/3 v5] Demangler crash handler References: <20140609152229.GA27494@blade.nx> <20140609152434.GD27494@blade.nx> <000901cf9eb5$16841da0$438c58e0$@muller@ics-cnrs.unistra.fr> <20140714085154.GA27730@blade.nx> X-Yow: HUMAN REPLICAS are inserted into VATS of NUTRITIONAL YEAST... Date: Mon, 14 Jul 2014 10:28:00 -0000 In-Reply-To: <20140714085154.GA27730@blade.nx> (Gary Benson's message of "Mon, 14 Jul 2014 09:51:54 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2014-07/txt/msg00317.txt.bz2 Gary Benson writes: > diff --git a/gdb/cp-support.c b/gdb/cp-support.c > index a8ea6fc..6a09b46 100644 > --- a/gdb/cp-support.c > +++ b/gdb/cp-support.c > @@ -1557,7 +1557,9 @@ gdb_demangle (const char *name, int options) > #if defined (HAVE_SIGACTION) && defined (SA_RESTART) > sa.sa_handler = gdb_demangle_signal_handler; > sigemptyset (&sa.sa_mask); > +#ifdef HAVE_SIGALTSTACK > sa.sa_flags = SA_ONSTACK; > +#endif You probably need to initialize sa.sa_flags in any case. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."