From f0861129d52b00fe57beb4fb0efca668faa3939a Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Wed, 2 Jul 2003 19:04:58 +0000 Subject: 2003-06-24 Michael Snyder * sim-main.h (SIM_WIFSTOPPED, SIM_WSTOPSIG): Define. * compile.c (sim_resume): Use the above to return stop signal. --- sim/h8300/sim-main.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sim/h8300/sim-main.h') diff --git a/sim/h8300/sim-main.h b/sim/h8300/sim-main.h index 6acf901..284a558 100644 --- a/sim/h8300/sim-main.h +++ b/sim/h8300/sim-main.h @@ -164,7 +164,9 @@ struct sim_state { /* Local version of macros for decoding exit status. (included here rather than try to find target version of wait.h) */ -#define SIM_WIFEXITED(V) (((V) & 0xff) == 0) -#define SIM_WEXITSTATUS(V) ((V) >> 8) +#define SIM_WIFEXITED(V) (((V) & 0xff) == 0) +#define SIM_WIFSTOPPED(V) (!SIM_WIFEXITED (V)) +#define SIM_WEXITSTATUS(V) (((V) >> 8) & 0xff) +#define SIM_WSTOPSIG(V) ((V) & 0x7f) #endif /* SIM_MAIN_H */ -- cgit v1.1