mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 09:38:57 +00:00
sim: nrun: decode signal when crashing
This isn't entirely correct in that it assumes the signal numbering of the target and host match, but seeing as we already make that assumption in a few places, this patch doesn't make the situation any worse. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user