diff options
-rw-r--r-- | sim/mn10300/ChangeLog | 4 | ||||
-rw-r--r-- | sim/mn10300/interp.c | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sim/mn10300/ChangeLog b/sim/mn10300/ChangeLog index dbb5b6d..1f5753f 100644 --- a/sim/mn10300/ChangeLog +++ b/sim/mn10300/ChangeLog @@ -1,3 +1,7 @@ +2021-05-29 Mike Frysinger <vapier@gentoo.org> + + * interp.c [!SIGTRAP] (SIGTRAP): Define to 5. + 2021-05-17 Mike Frysinger <vapier@gentoo.org> * sim-main.h (SIM_HAVE_COMMON_SIM_STATE): Delete. diff --git a/sim/mn10300/interp.c b/sim/mn10300/interp.c index b6c5d5b..541d4b1 100644 --- a/sim/mn10300/interp.c +++ b/sim/mn10300/interp.c @@ -464,6 +464,9 @@ mn10300_cpu_exception_resume(SIM_DESC sd, sim_cpu* cpu, int exception) if(exception == 0 && State.exc_suspended > 0) { +#ifndef SIGTRAP +# define SIGTRAP 5 +#endif if(State.exc_suspended != SIGTRAP) /* warn not for breakpoints */ sim_io_eprintf(sd, "Warning, resuming but ignoring pending exception signal (%d)\n", State.exc_suspended); |