From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21306 invoked by alias); 27 May 2002 18:06:42 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 21285 invoked from network); 27 May 2002 18:06:40 -0000 Received: from unknown (HELO branoic) (12.234.96.134) by sources.redhat.com with SMTP; 27 May 2002 18:06:40 -0000 Received: from drow by branoic with local (Exim 3.35 #1 (Debian)) id 17COsf-0001Th-00; Mon, 27 May 2002 14:06:05 -0400 Date: Mon, 27 May 2002 11:06:00 -0000 From: Daniel Jacobowitz To: Christophe PLANAT Cc: gdb@sources.redhat.com Subject: Re: Catch signals in GDBserver running on windows under cygwin Message-ID: <20020527180605.GB5523@branoic.them.org> Mail-Followup-To: Christophe PLANAT , gdb@sources.redhat.com References: <3CF25555.AEE64F2A@st.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3CF25555.AEE64F2A@st.com> User-Agent: Mutt/1.3.28i X-SW-Source: 2002-05/txt/msg00295.txt.bz2 On Mon, May 27, 2002 at 05:48:37PM +0200, Christophe PLANAT wrote: > Hi all, > > I am using GDBserver running on windows under CYGWIN (GDB is running on > the other side). Curious - what version of gdbserver? I don't know of any FSF version that supported cygwin. > When GDBServer is runnning (augmented of several debug printing) a DOS > window is open. If this DOS window is killed or closed (by using the > small cross in the upper right corner), I wish to catch the > corresponding signal and warn the GDB client that the server is down. > > How to catch such signals on Windows NT (or 98) ? I tried several > signal() on signals recognized on window (SIGABRT, ILL, INT, SEGV and > TERM) without any success. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer