[Lldb-commits] [PATCH] D147362: [lldb] Add Clang module import logging

Dave Lee via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 31 16:25:46 PDT 2023


kastiglione created this revision.
kastiglione added a reviewer: aprantl.
Herald added a project: All.
kastiglione requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

Log Clang module imports to lldb's `expr` channel.

This is minor add-on to D140056 <https://reviews.llvm.org/D140056>, which logs module _builds_ while also broadcasting Progress events.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147362

Files:
  lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp


Index: lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
===================================================================
--- lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
+++ lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
@@ -219,6 +219,13 @@
     LLDB_LOG(log, "Finished building Clang module {0}", module_name);
     return true;
   }
+  case clang::diag::remark_module_import: {
+    const auto &module_name = info.getArgStdStr(0);
+    const auto &module_path = info.getArgStdStr(1);
+    LLDB_LOG(log, "Importing Clang module {0} from {1}", module_name,
+             module_path);
+    return true;
+  }
   default:
     return false;
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147362.510144.patch
Type: text/x-patch
Size: 717 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230331/51807473/attachment.bin>


More information about the lldb-commits mailing list