diff options
Diffstat (limited to 'lldb/source/Interpreter')
-rw-r--r-- | lldb/source/Interpreter/ScriptInterpreterPython.cpp | 2 | ||||
-rw-r--r-- | lldb/source/Interpreter/embedded_interpreter.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp index 330e43742dc..59eb4642298 100644 --- a/lldb/source/Interpreter/ScriptInterpreterPython.cpp +++ b/lldb/source/Interpreter/ScriptInterpreterPython.cpp @@ -88,7 +88,7 @@ class SimpleREPL(code.InteractiveConsole):\n\ # Check the input string to see if it was the quit\n\ # command. If so, intercept it, so that it doesn't\n\ # close stdin on us!\n\ - if (temp_str.lower() == \"quit()\"):\n\ + if (temp_str.lower() == \"quit()\" or temp_str.lower() == \"exit()\"):\n\ self.loop_exit = True\n\ in_str = \"raise SystemExit \"\n\ return in_str\n\ diff --git a/lldb/source/Interpreter/embedded_interpreter.py b/lldb/source/Interpreter/embedded_interpreter.py index 38b2f9ef01e..549283348e5 100644 --- a/lldb/source/Interpreter/embedded_interpreter.py +++ b/lldb/source/Interpreter/embedded_interpreter.py @@ -45,7 +45,7 @@ class SimpleREPL(code.InteractiveConsole): # Check the input string to see if it was the quit # command. If so, intercept it, so that it doesn't # close stdin on us! - if (temp_str.lower() == "quit()"): + if (temp_str.lower() == "quit()" or temp_str.lower() == "exit()"): self.loop_exit = True in_str = "raise SystemExit " return in_str |