This is a bit of a hack, but it matches the hack we use in other
places in the sim currently. This fixes building for e.g. Windows.
The signal fallback logic needs a bit of love in general at some
point across all sim code.
+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.
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);