From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16555 invoked by alias); 27 May 2002 15:46:20 -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 16503 invoked from network); 27 May 2002 15:46:16 -0000 Received: from unknown (HELO beta.dmz-eu.st.com) (164.129.1.35) by sources.redhat.com with SMTP; 27 May 2002 15:46:16 -0000 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with SMTP id CCEEE512B for ; Mon, 27 May 2002 15:45:20 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 0) id 9D46461AB; Mon, 27 May 2002 15:45:20 +0000 (GMT) Received: from crx316.cro.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4F7E4184A for ; Mon, 27 May 2002 15:45:20 +0000 (GMT) Received: from dais.cro.st.com (crx722.cro.st.com [164.129.44.222]) by crx316.cro.st.com (8.9.3 (PHNE_24419)/8.9.3) with ESMTP id RAA26909 for ; Mon, 27 May 2002 17:48:32 +0200 (METDST) Received: from st.com (crx1009 [164.129.46.109]) by dais.cro.st.com (8.8.8+Sun/8.8.8) with ESMTP id RAA12340 for ; Mon, 27 May 2002 17:48:37 +0200 (MET DST) Message-ID: <3CF25555.AEE64F2A@st.com> Date: Mon, 27 May 2002 08:46:00 -0000 From: Christophe PLANAT Organization: ST CR&D Crolles X-Accept-Language: en MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: Catch signals in GDBserver running on windows under cygwin Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-05/txt/msg00293.txt.bz2 Hi all, I am using GDBserver running on windows under CYGWIN (GDB is running on the other side). 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. Thanks for any help Christophe -- ---------------------------------------------------------------------- | Christophe PLANAT | Embedded Systems Technology | | Email : Christophe.Planat@st.com | STMicroelectronics | | Phone : +33 04 76 92 68 82 | 850, rue Jean-Monnet | | Fax : +33 04 76 92 50 94 | BP 16 - 38921 Crolles - France | ----------------------------------------------------------------------