Skip to content

Commit e11902b

Browse files
committed
[lldb-dap] Show hidden frames as "subtle"
This commit takes advantage of the recently introduced `SBFrame::IsHidden` to show those hidden frames as "subtle" frames in the UI. E.g., VS Code renders such frames grayed out in the stack trace
1 parent e1c36bd commit e11902b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lldb/tools/lldb-dap/JSONUtils.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,9 @@ llvm::json::Value CreateStackFrame(lldb::SBFrame &frame) {
763763
object.try_emplace("instructionPointerReference", formatted_addr);
764764
}
765765

766+
if (frame.IsArtificial() || frame.IsHidden())
767+
object.try_emplace("presentationHint", "subtle");
768+
766769
return llvm::json::Value(std::move(object));
767770
}
768771

0 commit comments

Comments
 (0)