This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] sim: nrun: decode signal when crashing
- From: Mike Frysinger <vapier at gentoo dot org>
- To: gdb-patches at sourceware dot org
- Date: Mon, 15 Nov 2010 21:49:24 -0500
- Subject: [PATCH] sim: nrun: decode signal when crashing
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