From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3738 invoked by alias); 16 Nov 2010 16:10:57 -0000 Received: (qmail 3723 invoked by uid 22791); 16 Nov 2010 16:10:56 -0000 X-SWARE-Spam-Status: No, hits=-5.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 16 Nov 2010 16:10:46 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oAGGAiiR029568 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 16 Nov 2010 11:10:44 -0500 Received: from fche.csb (vpn-229-149.phx2.redhat.com [10.3.229.149]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id oAGGAiQi004539; Tue, 16 Nov 2010 11:10:44 -0500 Received: by fche.csb (Postfix, from userid 2569) id 974D25851D; Tue, 16 Nov 2010 11:10:43 -0500 (EST) To: Mike Frysinger Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] sim: nrun: decode signal when crashing References: <1289875764-16066-1-git-send-email-vapier@gentoo.org> From: fche@redhat.com (Frank Ch. Eigler) Date: Tue, 16 Nov 2010 16:10:00 -0000 In-Reply-To: <1289875764-16066-1-git-send-email-vapier@gentoo.org> (Mike Frysinger's message of "Mon, 15 Nov 2010 21:49:24 -0500") Message-ID: User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 X-SW-Source: 2010-11/txt/msg00201.txt.bz2 vapier wrote: > [...] > if (sigrc != 0) > - fprintf (stderr, "program stopped with signal %d.\n", sigrc); > + fprintf (stderr, "program stopped with signal %d (%s).\n", sigrc, > + strsignal (sigrc)); > break; I don't know if we can assume that the target signal numbering matches the host. Else I suspect we wouldn't have all those TARGET_SIGNAL_* defs. - FChE