public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] sim: nrun: decode signal when crashing
@ 2010-11-16  2:50 Mike Frysinger
  2010-11-16 16:10 ` Frank Ch. Eigler
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Frysinger @ 2010-11-16  2:50 UTC (permalink / raw)
  To: gdb-patches

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

2010-11-16  Mike Frysinger  <vapier@gentoo.org>

	* nrun.c (main): Display strsignal of sigrc.
---
 sim/common/nrun.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/sim/common/nrun.c b/sim/common/nrun.c
index e537849..4eefa7b 100644
--- a/sim/common/nrun.c
+++ b/sim/common/nrun.c
@@ -203,7 +203,8 @@ main (int argc, char **argv)
     case sim_signalled:
     case sim_stopped:
       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;
 
     case sim_exited:
-- 
1.7.3.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-03-19  3:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-16  2:50 [PATCH] sim: nrun: decode signal when crashing Mike Frysinger
2010-11-16 16:10 ` Frank Ch. Eigler
2010-11-16 19:06   ` Mike Frysinger
2010-12-28  4:43   ` Mike Frysinger
2012-03-19  3:59     ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).