[Lldb-commits] [PATCH] D19545: Use ClangASTContext for compilation units with DW_LANG_RUST

Michael Woerister via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 26 11:16:15 PDT 2016


michaelwoerister created this revision.
michaelwoerister added a reviewer: jasonmolenda.
michaelwoerister added a subscriber: lldb-commits.
michaelwoerister set the repository for this revision to rL LLVM.

Up until recently, LLDB would always use a ClangASTContext, regardless which language was specified in DWARF. While this is not a perfect solution for Rust programs, it at least enabled LLDB to step through them and display variable contents. Until there is a proper Rust language plugin for LLDB, we'd like to keep this behavior so that user can keep using LLDB with the restricted but useful feature set available up until a few months ago.

Repository:
  rL LLVM

http://reviews.llvm.org/D19545

Files:
  source/Symbol/ClangASTContext.cpp

Index: source/Symbol/ClangASTContext.cpp
===================================================================
--- source/Symbol/ClangASTContext.cpp
+++ source/Symbol/ClangASTContext.cpp
@@ -110,6 +110,8 @@
                Language::LanguageIsC (language) ||
                Language::LanguageIsCPlusPlus (language) ||
                Language::LanguageIsObjC (language) ||
+               // Use Clang for Rust until there is a proper language plugin for it
+               language == eLanguageTypeRust ||
                language == eLanguageTypeExtRenderScript;
     }
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19545.55043.patch
Type: text/x-patch
Size: 574 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160426/0f0aec2b/attachment-0001.bin>


More information about the lldb-commits mailing list