forked from Imagelibrary/binutils-gdb
sim: mn10300: add SIGTRAP fallback
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user