<rdar://problem/12586188> Make ImportError a special case for "command script import...
authorEnrico Granata <egranata@apple.com>
Wed, 31 Oct 2012 00:01:26 +0000 (00:01 +0000)
committerEnrico Granata <egranata@apple.com>
Wed, 31 Oct 2012 00:01:26 +0000 (00:01 +0000)
commit085577f8d0d2f60e3a6b4e4c22d8022d2988e221
tree44d426e1096cf395e9bef22e8758f76734886297
parentc280746b8cad81c09da2fbf45f7db75fea2d82ac
<rdar://problem/12586188> Make ImportError a special case for "command script import", such that the error message for the exception becomes the error for the entire import operation
and silence the backtrace printout

In the process, refactor the Execute* commands in ScriptInterpreter to take an options object, and add a new setting to not mask out errors so that the callers can handle them directly
instead of having the default behavior

llvm-svn: 167067
lldb/include/lldb/Interpreter/ScriptInterpreter.h
lldb/include/lldb/Interpreter/ScriptInterpreterNone.h
lldb/include/lldb/Interpreter/ScriptInterpreterPython.h
lldb/source/Interpreter/CommandObjectScript.cpp
lldb/source/Interpreter/ScriptInterpreterNone.cpp
lldb/source/Interpreter/ScriptInterpreterPython.cpp
lldb/test/functionalities/command_script/import/rdar-12586188/Makefile [new file with mode: 0644]
lldb/test/functionalities/command_script/import/rdar-12586188/TestRdar12586188.py [new file with mode: 0644]
lldb/test/functionalities/command_script/import/rdar-12586188/fail12586188.py [new file with mode: 0644]
lldb/test/functionalities/command_script/import/rdar-12586188/fail212586188.py [new file with mode: 0644]