llvm-project/lldb/source
Raphael Isemann 73951a11c6 [lldb] Add sanity check to CreateDeclContext and fixed illformed CompilerContext in ClangExpressionDeclMap.
This adds a check that the ClangASTContext actually fits to the
DeclContext that we want to create a CompilerDeclContext for. If
the ClangASTContext (and its associated ASTContext) does not fit
to the DeclContext (that is, the DeclContext wasn't created by the
ASTContext), all computations using this malformed CompilerDeclContext
will yield unpredictable results.

Also fixes the only place that actually hits this assert which is the
construction of a CompilerDeclContext in ClangExpressionDeclMap
where we pass an unrelated ASTContext instead of the ASTContext
of the current expression.

I had to revert my previous change to DWARFASTParserClangTests.cpp
back to using the unsafe direct construction of CompilerDeclContext
as this assert won't work if the DeclContext we pass isn't a valid
DeclContext in the first place.
2019-12-23 11:48:02 +01:00
..
API [Lldb/Lua] Generate Lua Bindings 2019-12-21 11:28:41 -08:00
Breakpoint [lldb][NFC] Migrate FileSpec::Dump to raw_ostream 2019-12-06 09:40:42 +01:00
Commands [lldb/ScriptInterpreter] Remove can_reload which is always true (NFC) 2019-12-22 21:36:03 -08:00
Core [lldb/ScriptInterpreter] Remove can_reload which is always true (NFC) 2019-12-22 21:36:03 -08:00
DataFormatters TypeCategory: Initialize m_enabled to false 2019-12-12 11:39:41 -08:00
Expression [lldb] Fix ARM32 inferior calls 2019-12-21 11:12:17 +01:00
Host [lldb] Fix ARM32 inferior calls 2019-12-21 11:12:17 +01:00
Initialization [Reproducer] Use ::rtrim() to remove trailing control characters. 2019-10-18 17:11:48 +00:00
Interpreter [lldb] Fix a -Wreturn-type gcc warning in ScriptInterpreter.cpp 2019-12-23 11:07:35 +01:00
Plugins [lldb] Add sanity check to CreateDeclContext and fixed illformed CompilerContext in ClangExpressionDeclMap. 2019-12-23 11:48:02 +01:00
Symbol [lldb] Add sanity check to CreateDeclContext and fixed illformed CompilerContext in ClangExpressionDeclMap. 2019-12-23 11:48:02 +01:00
Target In 'thread step-out' command, only insert a breakpoint in executable memory. 2019-12-20 11:02:24 -08:00
Utility [lldb][NFC] Make clang-format happy by removing trailing space in ArchSpec.cpp 2019-12-17 09:13:48 +01:00
CMakeLists.txt [CMake] Remove Apple-specific version logic. 2019-04-17 18:23:22 +00:00
lldb.cpp [CMake] Remove Apple-specific version logic. 2019-04-17 18:23:22 +00:00