llvm-project/lldb/source/Interpreter
Enrico Granata b4675a4e12 <rdar://problem/14266411>
The semi-unofficial way of returning a status from a Python command was to return a string (e.g. return "no such variable was found") that LLDB would pick as a clue of an error having happened

This checkin changes that:
- SBCommandReturnObject now exports a SetError() call, which can take an SBError or a plain C-string
- script commands now drop any return value and expect the SBCommandReturnObject ("return object") to be filled in appropriately - if you do nothing, a success will be assumed

If your commands were relying on returning a value and having LLDB pick that up as an error, please change your commands to SetError() through the return object or expect changes in behavior

llvm-svn: 184893
2013-06-25 23:43:28 +00:00
..
Args.cpp Fix a missing pointer deref that was uncovered by one of the buildbots. 2013-06-18 18:24:04 +00:00
CMakeLists.txt Add new files to CMakeLists.txt to fix cmake build error. 2013-06-17 23:07:22 +00:00
CommandHistory.cpp <rdar://problem/14134716> 2013-06-17 22:51:50 +00:00
CommandInterpreter.cpp Sort out a number of mismatched integer types in order to cut down the number of compiler warnings. 2013-06-19 19:04:53 +00:00
CommandObject.cpp <rdar://problem/13270271> 2013-06-18 01:17:46 +00:00
CommandObjectRegexCommand.cpp <rdar://problem/13384801> 2013-04-03 21:37:16 +00:00
CommandObjectScript.cpp *ahem* Enrico. 2013-02-20 23:51:13 +00:00
CommandObjectScript.h Fix a few more clang (3.2) warnings on Linux: 2012-12-07 22:21:08 +00:00
CommandReturnObject.cpp <rdar://problem/14266411> 2013-06-25 23:43:28 +00:00
Makefile Fix a few more clang (3.2) warnings on Linux: 2012-12-07 22:21:08 +00:00
OptionGroupArchitecture.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
OptionGroupBoolean.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
OptionGroupFile.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
OptionGroupFormat.cpp Fix clang warnings related to python macro redefinition and printf format specifiers. 2013-02-21 23:55:31 +00:00
OptionGroupOutputFile.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
OptionGroupPlatform.cpp <rdar://problem/13854277> 2013-05-10 21:47:16 +00:00
OptionGroupString.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
OptionGroupUInt64.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
OptionGroupUUID.cpp <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
OptionGroupValueObjectDisplay.cpp Our commands that end up displaying a ValueObject as part of their workflow use OptionGroupValueObjectDisplay as their currency for deciding the final representation 2013-03-26 18:04:53 +00:00
OptionGroupVariable.cpp <rdar://problem/12978143> 2013-01-28 23:47:25 +00:00
OptionGroupWatchpoint.cpp We were getting an assert because somebody was making a watchpoint that was 2013-06-18 21:52:48 +00:00
OptionValue.cpp <rdar://problem/11757916> 2012-08-29 21:13:06 +00:00
OptionValueArch.cpp <rdar://problem/12978143> 2013-01-28 23:47:25 +00:00
OptionValueArgs.cpp Reimplemented the code that backed the "settings" in lldb. There were many issues with the previous implementation: 2012-08-22 17:17:09 +00:00
OptionValueArray.cpp Resolve printf formatting warnings on Linux: 2012-11-29 21:49:15 +00:00
OptionValueBoolean.cpp <rdar://problem/12022079> 2012-08-23 00:22:02 +00:00
OptionValueDictionary.cpp <rdar://problem/12978143> 2013-01-28 23:47:25 +00:00
OptionValueEnumeration.cpp Resolve printf formatting warnings on Linux: 2012-11-29 21:49:15 +00:00
OptionValueFileSpec.cpp Cleanup logging to use the new "std::string FileSpec::GetPath()" function. Also added a similar function for modules: 2013-04-29 17:25:54 +00:00
OptionValueFileSpecLIst.cpp Sort out a number of mismatched integer types in order to cut down the number of compiler warnings. 2013-06-19 19:04:53 +00:00
OptionValueFormat.cpp <rdar://problem/12978143> 2013-01-28 23:47:25 +00:00
OptionValuePathMappings.cpp Sort out a number of mismatched integer types in order to cut down the number of compiler warnings. 2013-06-19 19:04:53 +00:00
OptionValueProperties.cpp Fixed some linux buildbot warnings. 2013-04-19 21:31:16 +00:00
OptionValueRegex.cpp Reimplemented the code that backed the "settings" in lldb. There were many issues with the previous implementation: 2012-08-22 17:17:09 +00:00
OptionValueSInt64.cpp Resolve printf formatting warnings on Linux: 2012-11-29 21:49:15 +00:00
OptionValueString.cpp Now that "settings set" will strip leading and trailing spaces, we need a way to be able to specify string values that contain spaces. So now settings setting <property> <value>" can have a <value> that is quoted: 2013-03-06 02:19:38 +00:00
OptionValueUInt64.cpp Resolve printf formatting warnings on Linux: 2012-11-29 21:49:15 +00:00
OptionValueUUID.cpp Remove the UUID::GetAsCString() method which required a buffer to save the 2013-05-03 23:56:12 +00:00
Options.cpp Fix some more mismatched integer types causing compiler warnings. 2013-06-24 14:04:57 +00:00
Property.cpp Fix Linux build warnings due to redefinition of macros: 2012-12-05 00:20:57 +00:00
PythonDataObjects.cpp Fix various build warnings. 2013-06-03 18:00:07 +00:00
ScriptInterpreter.cpp After discussing with Chris Lattner, we require C++11, so lets get rid of the macros and just use C++11. 2013-04-18 22:45:39 +00:00
ScriptInterpreterNone.cpp Fix Linux build warnings due to redefinition of macros: 2012-12-05 00:20:57 +00:00
ScriptInterpreterPython.cpp <rdar://problem/14266411> 2013-06-25 23:43:28 +00:00
embedded_interpreter.py Split up the Python script interpreter code to allow multiple script interpreter objects to 2011-01-14 00:29:16 +00:00