From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2005 invoked by alias); 16 Nov 2010 19:06:22 -0000 Received: (qmail 1997 invoked by uid 22791); 16 Nov 2010 19:06:21 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,TW_QE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 16 Nov 2010 19:06:11 +0000 Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id AEACB1B40BE; Tue, 16 Nov 2010 19:06:09 +0000 (UTC) From: Mike Frysinger To: "Frank Ch. Eigler" Subject: Re: [PATCH] sim: nrun: decode signal when crashing Date: Tue, 16 Nov 2010 19:06:00 -0000 User-Agent: KMail/1.13.5 (Linux/2.6.36; KDE/4.5.2; x86_64; ; ) Cc: gdb-patches@sourceware.org References: <1289875764-16066-1-git-send-email-vapier@gentoo.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1684346.qRrSr1lEcU"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201011161404.56309.vapier@gentoo.org> X-IsSubscribed: yes 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/msg00210.txt.bz2 --nextPart1684346.qRrSr1lEcU Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-length: 1243 On Tuesday, November 16, 2010 11:10:43 Frank Ch. Eigler wrote: > vapier wrote: > > [...] > >=20 > > if (sigrc !=3D 0) > >=20 > > - fprintf (stderr, "program stopped with signal %d.\n", sigrc); > > + fprintf (stderr, "program stopped with signal %d (%s).\n", sigrc, > > + strsignal (sigrc)); > >=20 > > break; >=20 > 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. for the platforms i care about, they are ;). but that's a fair point. i=20 think the reason i did this is because the signal_map logic isnt really use= d=20 anywhere that i can see. perhaps i should bite the bullet and add a=20 target_strsignal() that operates on the callback maps ... i get the feeling that the sim history is something like: - there were no viable sims, so this one was started up ... it was a bit=20 bare, but it worked for people's minimal needs - ibm threw a lot of money at developers who created a pretty full ppc sim= as=20 a semi-fork ... then over time, much of that work was merged back - qemu gathered steam and sucked up all the potential developers - many cool sim features remain stalled & under developed -mike --nextPart1684346.qRrSr1lEcU Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. Content-length: 836 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iQIcBAABAgAGBQJM4tXYAAoJEEFjO5/oN/WBhjYP/3k353E31JiIdp8576MeJiNT drev4u1zwrEVBF8Bmtiq0O8fVTlMN82GMyLqVAm8dlJikswIor06RuV1U9piWiEM 4Oqk3+ytvC2Fej9q9pEhJ4tm/Slcgdl+kIqWrVFPjjSEiXrW7jR0+rK411OIPDdm FGCzW6JCGQ6lPtHvMgS1qdB5X/67+kBZJ2hv/Nfp35oa5AV22S04KwTbS5opLu03 u6cFKYbbN6c9jNwzaOicLuW4MRU7+VtKaQOe1OF2lOwDWHXiFa0xnkk/bTFcETuT NZNOjLtU5MaBv/uNK7H3kqhfLEzj4GZQvLmD0H2Xtb7Bh0A9Yx2vpbZP9L8Yvzd3 8b4ifs3bwLWkRV25i1YDNTKJbTHD8SixGAF0gWnUaMv3xSOTAnceBCEA2kW5SZHX FNJIEI6cnLLCbnGS+vbhG0djDSOwWtwmiyztOe05Sbix5JlZfm+EZ1zBtELehhnU lEgclu70T34gykeXotRbVQyLjHU1HyvqT+1xFyNO0+glEK8j9XSozxP//x2KdNZi h6n003e2+GqBPMXT0bjAUz/2V3CsGMyzUIauKg7s7KJ/83MWEHKLFVkGPLOZDqIb Rb3cui8DcCzA5mvZcDbjkxQjXTZCNopNcEQ6B3B0+Y1ypvl/gcJLlQqCM1vJ+9hV ToWi8f9Fg/CiqXPEoC2C =CM/c -----END PGP SIGNATURE----- --nextPart1684346.qRrSr1lEcU--