|
OpenASIP 2.2
|


Public Member Functions | |
| SigSegvHandler (SimulatorFrontend &target) | |
| virtual void | execute (int, siginfo_t *) |
Public Member Functions inherited from Application::UnixSignalHandler | |
| virtual | ~UnixSignalHandler () |
Private Attributes | |
| SimulatorFrontend & | target_ |
| Simulator frontend to use when stopping the simulation. | |
A handler class for SIGSEGV signal
Stops the simulation (if it's running). Used for catching errors from the simulated program in the compiled simulation engine.
|
inline |
Constructor.
| target | The target SimulatorFrontend instance. |
Definition at line 140 of file TTASim.cc.
|
inlinevirtual |
Terminates the simulation.
| SimulationExecutionError | thrown always |
Implements Application::UnixSignalHandler.
Definition at line 148 of file TTASim.cc.
References SimulatorFrontend::prepareToStop(), SimulatorFrontend::reportSimulatedProgramError(), SimulatorFrontend::RES_FATAL, SRE_RUNTIME_ERROR, and target_.

|
private |