Move the handling of unhandled exceptions in the loop.
Indeed if the UserInterface.cpp is compiled without -fno-exceptions I get: ****************** CLING ****************** * Type C++ code and press enter to run it * * Type .q to exit * ******************************************* [cling]$ throw 12; Exception occurred. Recovering... [cling]$ .q So the issue is still in the build system, because I built UserInterface.cpp 'by hand'.
This commit is contained in:
parent
dc47e5f3b5
commit
7179804c46
@ -61,8 +61,8 @@ namespace cling {
|
||||
|
||||
TI.SetPrompt("[cling]$ ");
|
||||
std::string line;
|
||||
try {
|
||||
while (true) {
|
||||
while (true) {
|
||||
try {
|
||||
m_MetaProcessor->getOuts().flush();
|
||||
TextInput::EReadResult RR = TI.ReadInput();
|
||||
TI.TakeInput(line);
|
||||
@ -89,9 +89,9 @@ namespace cling {
|
||||
TI.SetPrompt(Prompt.c_str());
|
||||
|
||||
}
|
||||
}
|
||||
catch(...) {
|
||||
llvm::errs() << "Exception occurred. Recovering...\n";
|
||||
catch(...) {
|
||||
llvm::errs() << "Exception occurred. Recovering...\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user