Deal with kill encoding the signal via the exit status.

This commit is contained in:
Michael Meissner 1996-12-31 23:18:55 +00:00
parent 20868ec647
commit 6ec96a0265
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,8 @@
Tue Dec 31 18:11:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
* simops.c (OP_10007E0): Know that kill encodes the signal number
via: 0xdead0000 | signal and turn it back into a signal.
Fri Dec 27 14:44:06 1996 Michael Meissner <meissner@tiktok.cygnus.com> Fri Dec 27 14:44:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
* v850_sim.h (SIG_V850_EXIT): Define as -1. * v850_sim.h (SIG_V850_EXIT): Define as -1.

View File

@ -2053,9 +2053,12 @@ OP_10007E0 ()
RETVAL = v850_callback->open (v850_callback, MEMPTR (PARM1), PARM2); RETVAL = v850_callback->open (v850_callback, MEMPTR (PARM1), PARM2);
break; break;
case SYS_exit: case SYS_exit:
/* EXIT - caller can look in PARM1 to work out the if ((PARM1 & 0xffff0000) == 0xdead0000 && (PARM1 & 0xffff) != 0)
reason */ State.exception = PARM1 & 0xffff; /* get signal encoded by kill */
State.exception = SIG_V850_EXIT; else if (PARM1 == 0xdead)
State.exception = SIGABRT; /* old libraries */
else
State.exception = SIG_V850_EXIT; /* PARM1 has exit status encoded */
break; break;
case SYS_stat: /* added at hmsi */ case SYS_stat: /* added at hmsi */