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:
Nilay Vaish
2012-09-10 12:20:34 -05:00
parent 0b1108c7a3
commit 4e6f048ef0

View File

@@ -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