llvm-project/lldb/source/Interpreter
Enrico Granata 5c47969350 Improvements to "command script import" to better support reloading in Xcode
Xcode spawns a new LLDB SBDebugger for each debug session, and this was causing the reloading of python modules to fail across debug sessions

(long story short: the module would not be loaded in the current instance of the ScriptInterpreter, but would still be present in sys.modules, hence the import call would just make a copy of it and not run it again
Greg's new decorator uncovered the issue since it relies on actually loading the module's code rather than using __lldb_init_module as the active entity)

This patch introduces the notion of a local vs. global import and crafts an appropriate command to allow reloading to work across debug sessions

llvm-svn: 184279
2013-06-19 03:05:52 +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 This patch fixes the issue where our command-line tab completer would sometimes replicate commands 2013-06-18 18:01:08 +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 Change CommandReturnObject::AppendMessage to print an empty line if 2013-05-01 08:37:52 +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 Ran the sources through the compiler with -Wshadow warnings 2012-10-04 22:47:07 +00:00
OptionValueFormat.cpp <rdar://problem/12978143> 2013-01-28 23:47:25 +00:00
OptionValuePathMappings.cpp Ran the sources through the compiler with -Wshadow warnings 2012-10-04 22:47:07 +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 Fixed some linux buildbot warnings. 2013-04-19 21:31:16 +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 Improvements to "command script import" to better support reloading in Xcode 2013-06-19 03:05:52 +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