aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sim/common/ChangeLog4
-rw-r--r--sim/common/nrun.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index df6417c..0f52baf 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,7 @@
+2012-03-18 Mike Frysinger <vapier@gentoo.org>
+
+ * nrun.c (main): Display strsignal of sigrc.
+
2012-01-06 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (abs_srcdir): Declare.
diff --git a/sim/common/nrun.c b/sim/common/nrun.c
index b7dbbcf..a50ae06 100644
--- a/sim/common/nrun.c
+++ b/sim/common/nrun.c
@@ -202,7 +202,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: