diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-11-04 12:50:38 -0800 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-11-04 12:51:26 -0800 |
commit | c29c24be638957d471e7991b55f54bff69044239 (patch) | |
tree | 56e9d99940cf9d048588c66201dc816f184e1956 /clang/lib/Basic/Module.cpp | |
parent | b45ea4451a9ee9595865483f90b88faa84413475 (diff) | |
download | llvm-c29c24be638957d471e7991b55f54bff69044239.zip llvm-c29c24be638957d471e7991b55f54bff69044239.tar.gz llvm-c29c24be638957d471e7991b55f54bff69044239.tar.bz2 |
[crashlog] Pass the debugger around instead of relying on lldb.debugger
The lldb.debugger et al convenience variables are only available from
the interactive script interpreter. In all other scenarios, they are
None (since fc1fd6bf9fcfac412b10b4193805ec5de0e8df57) before that they
were default initialized.
The crashlog script was hacking around that by setting the lldb.debugger
to a newly created debugger instance when running outside of the script
interpreter, which works fine until lldb creates a script interpreter
instance under the hood and clears the variables. This was resulting in
an AttributeError when invoking the script directly (from outside of
lldb):
AttributeError: 'NoneType' object has no attribute 'GetSourceManager'
This patch fixes that by passing around the debugger instance.
rdar://64775776
Differential revision: https://reviews.llvm.org/D90706
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions