llvm-project/lldb
Gabor Marton aefcf5100a [ASTImporter] Fix LLDB lookup in transparent ctx and with ext src
Summary:
With LLDB we use localUncachedLookup(), however, that fails to find
Decls when a transparent context is involved and the given DC has
external lexical storage.  The solution is to use noload_lookup, which
works well with transparent contexts.  But, we cannot use only the
noload_lookup since the slow case of localUncachedLookup is still needed
in some other cases.

These other cases are handled in ASTImporterLookupTable, but we cannot
use that with LLDB since that traverses through the AST which initiates
the load of external decls again via DC::decls().

We must avoid loading external decls during the import becuase
ExternalASTSource is implemented with ASTImporter, so external loads
during import results in uncontrolled and faulty import.

Reviewers: shafik, teemperor, jingham, clayborg, a_sidorin, a.sidorin

Subscribers: rnkovacs, dkrupp, Szelethus, gamesh411, cfe-commits, lldb-commits

Tags: #clang, #lldb

Differential Revision: https://reviews.llvm.org/D61333

llvm-svn: 366325
2019-07-17 13:47:46 +00:00
..
cmake Don't require python exe and lib versions to match while crosscompiling 2019-07-16 23:54:17 +00:00
docs [Docs] Replace SVN revisions with lldb versions 2019-07-09 21:21:45 +00:00
examples [crashlog] Fix a mismatch between bytes and strings. 2019-07-09 01:05:12 +00:00
include/lldb [Symbol] Remove unused fields from ClangASTContext 2019-07-16 21:05:08 +00:00
lit ObjectFileELF: Add support for gnu-style compressed sections 2019-07-10 16:10:43 +00:00
lldb.xcodeproj Update some file changes, but there's a dependency loop so 2019-07-15 23:55:22 +00:00
lldb.xcworkspace Remove lldb-perf 2019-07-08 21:38:34 +00:00
packages/Python/lldbsuite [ASTImporter] Fix LLDB lookup in transparent ctx and with ext src 2019-07-17 13:47:46 +00:00
resources [CMake] Revised LLDB.framework builds 2019-01-04 12:46:50 +00:00
scripts Revert "[swig] Add workaround for old swig" 2019-07-16 15:54:33 +00:00
source [ASTImporter] Fix LLDB lookup in transparent ctx and with ext src 2019-07-17 13:47:46 +00:00
test [CMake] Folder structure for generated Xcode project to cover more targets 2019-05-28 09:29:05 +00:00
third_party/Python/module [lldb/thirdparty] Remove unneeded files, asked by Jonas. 2019-03-12 20:41:36 +00:00
tools [lldb] Handle EOF from `lldb-vscode` 2019-07-16 06:34:44 +00:00
unittests Add a sanity check to the domain socket tests. 2019-06-27 16:45:23 +00:00
utils [lldb] Let table gen create command option initializers. 2019-07-12 15:30:55 +00:00
.arcconfig
.clang-format
.gitignore Add .noindex to the gitignore 2019-04-05 17:57:42 +00:00
CMakeLists.txt [lldb] Let table gen create command option initializers. 2019-07-12 15:30:55 +00:00
CODE_OWNERS.txt Fix/unify the spelling of Objective-C. 2018-06-13 16:21:24 +00:00
INSTALL.txt Fix build URL in new LLDB website 2019-05-01 09:55:00 +00:00
LICENSE.TXT Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
use_lldb_suite_root.py