Go to the documentation of this file.
87 if (minorErrors > 0) {
88 for (
size_t i = 0; i < minorErrors; ++i) {
89 std::cerr <<
"warning: runtime error: "
96 if (fatalErrors > 0) {
97 for (
size_t i = 0; i < fatalErrors; ++i) {
98 std::cerr <<
"error: runtime error: "
106 <<
"Current PC: " << currentPC <<
" last PC: " << lastPC
107 <<
" cycle count: " << cycleCount << std::endl;
192 std::string command =
"";
UInt32 InstructionAddress
virtual ~RuntimeErrorReporter()
virtual std::string result()
SimulatorInterpreter * interpreter_
RuntimeErrorReporter(SimulatorFrontend &target)
virtual void setInputHistoryLog(const std::string &historyFilename)
bool isQuitCommandGiven() const
SimulatorCmdLineOptions * options_
SimulatorFrontend & simFront_
virtual std::string readLine(std::string prompt="")=0
#define SIM_COMMAND_PROMPT
The command prompt of the simulator interpreter.
#define assert(condition)
InstructionAddress programCounter() const
#define SIM_INTERP_QUIT_COMMAND
The command used to quit the command line interface.
virtual void handleEvent()
static CmdLineOptions * cmdLineOptions()
std::string programErrorReport(RuntimeErrorSeverity severity, std::size_t index)
virtual bool interpret(const std::string &commandLine)
@ SRE_RUNTIME_ERROR
A fatal runtime error occured in the simulated program.
@ RES_MINOR
Minor runtime error, no abort necessary.
@ RES_FATAL
Fatal runtime error, there is a serious error in the simulated program, thus it makes no sense to go ...
@ SE_RUNTIME_ERROR
Sent when a runtime error is detected in the simulated program.
bool isCompiledSimulation() const
virtual InstructionAddress lastExecutedInstruction(int coreId=-1) const
std::size_t programErrorReportCount(RuntimeErrorSeverity severity)
void clearProgramErrorReports()
RuntimeErrorReporter * errorReporter_
ClockCycleCount cycleCount() const
SimulationEventHandler & eventHandler()
virtual void initialize(std::string defPrompt="", FILE *in=stdin, FILE *out=stdout, FILE *err=stderr)=0
SimulatorInterpreterContext * context_
SimulatorFrontend & target_
Simulator frontend to use.
CycleCount ClockCycleCount
Alias for ClockCycleCount.
#define SIM_DEFAULT_COMMAND_LOG
The default command log file name.
virtual void interpreteAndPrintResults(const TCEString &scriptString)
void prepareToStop(StopReason reason)