[Lldb-commits] [lldb] [lldb-dap] Support StackFrameFormat (PR #137113)
John Harrison via lldb-commits
lldb-commits at lists.llvm.org
Thu Apr 24 08:56:21 PDT 2025
================
@@ -178,14 +179,45 @@ void StackTraceRequestHandler::operator()(
llvm::json::Array stack_frames;
llvm::json::Object body;
+ lldb::SBFormat frame_format = dap.frame_format;
+
+ if (const auto *format = arguments->getObject("format")) {
+ const bool parameters = GetBoolean(format, "parameters").value_or(false);
+ const bool parameter_names =
+ GetBoolean(format, "parameterNames").value_or(false);
+ const bool parameter_values =
+ GetBoolean(format, "parameterValues").value_or(false);
+ const bool line = GetBoolean(format, "line").value_or(false);
+ const bool module = GetBoolean(format, "module").value_or(false);
+ const bool include_all = GetBoolean(format, "includeAll").value_or(false);
----------------
ashgti wrote:
Its worth noting that today I don't think we skip any frames, however we do use the 'presentationHint' to tweak the frames a little.
* `deemphasize` is used when we don't have the source info for a frame https://github.com/llvm/llvm-project/blob/feaa5aa840dcda69bd4133536142be882f696114/lldb/tools/lldb-dap/JSONUtils.cpp#L774
* `subtle` is used if the frame is artificial or hidden https://github.com/llvm/llvm-project/blob/feaa5aa840dcda69bd4133536142be882f696114/lldb/tools/lldb-dap/JSONUtils.cpp#L795
https://github.com/llvm/llvm-project/pull/137113
More information about the lldb-commits
mailing list