Ruby Slicc: remove the call to cin.get() function
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.
This commit is contained in:
@@ -54,14 +54,7 @@ class AST(PairContainer):
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user