If I understand correctly, this was put in place so that a debugger can be
attached when the protocol aborts. While this sounds useful, it is a problem
when the simulation is not being actively monitored. I think it is better to
remove this.
message = message % args
code = self.slicc.codeFormatter()
code('''
-char c;
-cerr << "Runtime Error at ${{self.location}}, Ruby Time: "
- << g_system_ptr->getTime() << ": "
- << $message
- << ", PID: " << getpid() << endl
- << "press return to continue." << endl;
-cin.get(c);
-abort();
+panic("Runtime Error at ${{self.location}}, Ruby Time: %d, %s.\\n",
+ g_system_ptr->getTime(), $message);
''')
-
return code