diff options
| author | Greg Clayton <gclayton@apple.com> | 2012-12-10 19:18:23 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2012-12-10 19:18:23 +0000 |
| commit | bc41bf70bd5dd9d0719bfbb77c6324006fca27b4 (patch) | |
| tree | 8676d9b35220eb198988beb206b4829ced64c65d /lldb/scripts | |
| parent | f7cbcf2648d7f03eb1a426b70150fec92693df65 (diff) | |
| download | bcm5719-llvm-bc41bf70bd5dd9d0719bfbb77c6324006fca27b4.tar.gz bcm5719-llvm-bc41bf70bd5dd9d0719bfbb77c6324006fca27b4.zip | |
Make sure that the lldb globals:
lldb.target
lldb.process
lldb.thread
lldb.frame
are initialized to at least contain empty lldb classes in case some python gets imported that uses them.
llvm-svn: 169750
Diffstat (limited to 'lldb/scripts')
| -rw-r--r-- | lldb/scripts/Python/modify-python-lldb.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lldb/scripts/Python/modify-python-lldb.py b/lldb/scripts/Python/modify-python-lldb.py index 4345ea26bba..61ac6840357 100644 --- a/lldb/scripts/Python/modify-python-lldb.py +++ b/lldb/scripts/Python/modify-python-lldb.py @@ -433,5 +433,11 @@ new_content.finish() with open(output_name, 'w') as f_out: f_out.write(new_content.getvalue()) - f_out.write("debugger_unique_id = 0\n") - f_out.write("SBDebugger.Initialize()\n") + f_out.write('''debugger_unique_id = 0 +SBDebugger.Initialize() +debugger = None +target = SBTarget() +process = SBProcess() +thread = SBThread() +frame = SBFrame()''') + |

