llvm-project/lldb
Jonas Devlieghere c29c24be63 [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 fc1fd6bf9f) 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
2020-11-04 12:51:26 -08:00
..
bindings GetModule, GetExeModule methods added 2020-10-29 23:44:51 +03:00
cmake Fix "Unknown arguments specified" to if in lldb 2020-10-21 07:24:53 -07:00
docs Fix gendered documentation 2020-10-31 12:17:19 +01:00
examples [crashlog] Pass the debugger around instead of relying on lldb.debugger 2020-11-04 12:51:26 -08:00
include/lldb [lldb/Utility] Delete Scalar::[US]IntValueIsValidForSize 2020-11-04 16:28:10 +01:00
packages/Python Mark the execution of stop-hooks as non-interactive. 2020-10-29 14:41:53 -07:00
resources
scripts [lldb] Correct --help output for qemu rootfs script 2020-10-29 09:57:32 +00:00
source [lldb] Remove [US]IntValueIsValidForSize from CommandObjectMemory 2020-11-04 16:28:10 +01:00
test [lldb] [test] Update XFAILs/skips for FreeBSD 2020-11-03 22:01:59 +01:00
third_party/Python/module Revert "[lldb] temporary commit to see why a test is failing only on lldb-aarch64-ubuntu" 2020-08-05 11:55:02 +02:00
tools [lldb] Move copying of files into reproducer out of process 2020-10-23 12:33:54 -07:00
unittests [lldb] Improve RegisterValue::GetScalarValue 2020-11-04 14:53:06 +01:00
utils [lldb] Delete lldb/utils/test 2020-10-28 12:06:02 -07:00
.clang-format
.clang-tidy [lldb] Add .clang-tidy with customization to disable readability-identifier-naming 2020-03-09 12:50:28 -07:00
.gitignore
CMakeLists.txt [lldb] Enable cmake policy CMP0077 for option() 2020-10-17 00:16:24 -07:00
CODE_OWNERS.txt
LICENSE.TXT
use_lldb_suite_root.py