[Lldb-commits] [lldb] r105756 - in /lldb/trunk/source/Interpreter: ScriptInterpreterPython.cpp embedded_interpreter.py
Jason Molenda
jmolenda at apple.com
Wed Jun 9 14:56:00 PDT 2010
Author: jmolenda
Date: Wed Jun 9 16:56:00 2010
New Revision: 105756
URL: http://llvm.org/viewvc/llvm-project?rev=105756&view=rev
Log:
Committing patch from Joseph Ranieri to handle 'exit()' the same
as 'quit()' in the python script environment.
Modified:
lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp
lldb/trunk/source/Interpreter/embedded_interpreter.py
Modified: lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp?rev=105756&r1=105755&r2=105756&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp (original)
+++ lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp Wed Jun 9 16:56:00 2010
@@ -88,7 +88,7 @@
# 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\
Modified: lldb/trunk/source/Interpreter/embedded_interpreter.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/embedded_interpreter.py?rev=105756&r1=105755&r2=105756&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/embedded_interpreter.py (original)
+++ lldb/trunk/source/Interpreter/embedded_interpreter.py Wed Jun 9 16:56:00 2010
@@ -45,7 +45,7 @@
# 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
More information about the lldb-commits
mailing list