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;
     }
 }


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;
     }
 }
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to