diff options
| author | Enrico Granata <egranata@apple.com> | 2013-06-19 03:05:52 +0000 |
|---|---|---|
| committer | Enrico Granata <egranata@apple.com> | 2013-06-19 03:05:52 +0000 |
| commit | 5c47969350e9d90dc900672fe0e996f8262e2c63 (patch) | |
| tree | 465b0b0996865708ebd60c6fa2836b3c93a4630c /lldb/source/Commands/CommandObjectSyntax.cpp | |
| parent | 16577a58e33ad2910e410e01477a50f66a384c11 (diff) | |
| download | llvm-5c47969350e9d90dc900672fe0e996f8262e2c63.zip llvm-5c47969350e9d90dc900672fe0e996f8262e2c63.tar.gz llvm-5c47969350e9d90dc900672fe0e996f8262e2c63.tar.bz2 | |
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
Diffstat (limited to 'lldb/source/Commands/CommandObjectSyntax.cpp')
0 files changed, 0 insertions, 0 deletions
