summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2010-06-09 21:56:00 +0000
committerJason Molenda <jmolenda@apple.com>2010-06-09 21:56:00 +0000
commitb1823404c3360a8fc7fd74e89ec0566737650919 (patch)
tree59dd86df01562a46966e798e034fe84514591123 /lldb/source/Interpreter/ScriptInterpreterPython.cpp
parentf7a4715fdb0bbd989a551ec464e2e082527e69bd (diff)
downloadbcm5719-llvm-b1823404c3360a8fc7fd74e89ec0566737650919.tar.gz
bcm5719-llvm-b1823404c3360a8fc7fd74e89ec0566737650919.zip
Committing patch from Joseph Ranieri to handle 'exit()' the same
as 'quit()' in the python script environment. llvm-svn: 105756
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreterPython.cpp')
-rw-r--r--lldb/source/Interpreter/ScriptInterpreterPython.cpp2
1 files changed, 1 insertions, 1 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\
OpenPOWER on IntegriCloud