[Lldb-commits] [lldb] [lldb-dap] Add module symbol table viewer to VS Code extension #140626 (PR #153836)

John Harrison via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 15 17:31:57 PDT 2025


================
@@ -981,6 +981,23 @@ struct WriteMemoryResponseBody {
 };
 llvm::json::Value toJSON(const WriteMemoryResponseBody &);
 
+struct DAPGetModuleSymbolsArguments {
+  /// The module UUID for which to retrieve symbols.
+  std::optional<std::string> moduleId;
----------------
ashgti wrote:

I think a `std::string` that is empty is indistinguishable from an `std::optional<std::string>`, could these just be `std::string` types and in the `fromJSON` we use `mapOptional`?  Then in the implementation we can check `.empty()`.

https://github.com/llvm/llvm-project/pull/153836


More information about the lldb-commits mailing list