[Lldb-commits] [lldb] [lldb-dap] Migrate stackTrace request to structured types (PR #173226)

Ebuka Ezike via lldb-commits lldb-commits at lists.llvm.org
Mon Dec 22 08:16:49 PST 2025


================
@@ -1044,6 +1044,92 @@ struct CompileUnit {
 };
 llvm::json::Value toJSON(const CompileUnit &);
 
+/// Provides formatting information for a stack frame.
+struct StackFrameFormat {
+  /// Displays parameters for the stack frame.
+  bool parameters = false;
+
+  /// Displays the types of parameters for the stack frame.
+  bool parameterTypes = false;
+
+  /// Displays the names of parameters for the stack frame.
+  bool parameterNames = false;
+
+  /// Displays the values of parameters for the stack frame.
+  bool parameterValues = false;
+
+  /// Displays the line number of the stack frame.
+  bool line = false;
+
+  /// Displays the module of the stack frame.
+  bool module = false;
+
+  /// Includes all stack frames, including those the debug adapter might
+  /// otherwise hide.
+  bool includeAll = false;
+};
+bool fromJSON(const llvm::json::Value &, StackFrameFormat &, llvm::json::Path);
+
+/// A Stackframe contains the source location.
+struct StackFrame {
+  enum PresentationHint : unsigned {
+    ePresentationHintNormal,
+    ePresentationHintLabel,
+    ePresentationHintSubtle,
+  };
+
+  /// An identifier for the stack frame. It must be unique across all threads.
+  /// This id can be used to retrieve the scopes of the frame with the `scopes`
+  /// request or to restart the execution of a stack frame.
+  int64_t id;
----------------
da-viper wrote:


```suggestion
  lldb::tid_t id;
```

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


More information about the lldb-commits mailing list