[Lldb-commits] [PATCH] D83072: [lldb-vscode] Add Compile Unit List to Modules View

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 8 14:42:51 PDT 2020


clayborg requested changes to this revision.
clayborg added a comment.
This revision now requires changes to proceed.

Just use the SBFileSpec::GetPath(...) and document the compile unit request, args and response, and this will be ready.



================
Comment at: lldb/tools/lldb-vscode/JSONUtils.cpp:942-943
+  llvm::json::Object object;
+  std::string path = std::string(unit.GetFileSpec().GetDirectory()) + "/" +
+                      std::string(unit.GetFileSpec().GetFilename());
+  object.try_emplace("compileUnitPath", path);
----------------
Let LLDB handle the '/' like we did using SBFileSpec::GetPath(...) here.


================
Comment at: lldb/tools/lldb-vscode/lldb-vscode.cpp:1177
 
+void request_getCompileUnits(const llvm::json::Object &request) {
+  llvm::json::Object response;
----------------
We need to document the packet format like ""InitializeRequest" on lines 1202-1277. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83072/new/

https://reviews.llvm.org/D83072





More information about the lldb-commits mailing list