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

Ely Ronnen via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 15 16:33:27 PDT 2025


================
@@ -48,6 +48,38 @@ struct SourceLLDBData {
 bool fromJSON(const llvm::json::Value &, SourceLLDBData &, llvm::json::Path);
 llvm::json::Value toJSON(const SourceLLDBData &);
 
+struct DAPSymbol {
+  /// The symbol uid.
+  uint32_t userId;
+
+  /// True if this symbol is debug information in a symbol.
+  bool isDebug;
+
+  /// True if this symbol is not actually in the symbol table, but synthesized
+  /// from other info in the object file.
+  bool isSynthetic;
+
+  /// True if this symbol is globally visible.
+  bool isExternal;
+
+  /// The symbol type.
+  std::string type;
----------------
eronnen wrote:

it comes from the `lldb::SymbolType` enum which has many possible values, so I wonder if it's worth it to copy all the values to an enum in the JS side too

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


More information about the lldb-commits mailing list