[Lldb-commits] [PATCH] D24794: Use Clang for D language support until there is a proper language plugin for it.

Johan Engelen via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 21 05:21:49 PDT 2016


johanengelen created this revision.
johanengelen added a reviewer: LLDB.
johanengelen added a subscriber: lldb-commits.

Binaries with Dwarf language set to "DW_LANG_D" currently do not show much information in LLDB (e.g. no local variables).

With this simple change, Clang language support is used for D (the same as what is done for Rust) and local variables show up nicely.

I don't know whether, or how, to add a testcase for this. Please advise.

(I don't have write access, so if you accept the change, please apply it too. Thanks!)

https://reviews.llvm.org/D24794

Files:
  source/Symbol/ClangASTContext.cpp

Index: source/Symbol/ClangASTContext.cpp
===================================================================
--- source/Symbol/ClangASTContext.cpp
+++ source/Symbol/ClangASTContext.cpp
@@ -113,7 +113,9 @@
          Language::LanguageIsPascal(language) ||
          // Use Clang for Rust until there is a proper language plugin for it
          language == eLanguageTypeRust ||
-         language == eLanguageTypeExtRenderScript;
+         language == eLanguageTypeExtRenderScript ||
+         // Use Clang for D until there is a proper language plugin for it
+         language == eLanguageTypeD;
 }
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24794.72028.patch
Type: text/x-patch
Size: 605 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160921/f8fa26f5/attachment.bin>


More information about the lldb-commits mailing list