Skip to content

Commit 66f2253

Browse files
committed
Simplify dap.configuration.displayExtendedBacktrace
1 parent 3cf5b4f commit 66f2253

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lldb/tools/lldb-dap/Handler/StackTraceRequestHandler.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ static bool FillStackFrames(DAP &dap, lldb::SBThread &thread,
7272
stack_frames.emplace_back(CreateStackFrame(frame, frame_format));
7373
}
7474

75-
const bool include_extended_backtrace =
76-
include_all || dap.configuration.displayExtendedBacktrace;
77-
if (include_extended_backtrace && reached_end_of_stack) {
75+
if (include_all && reached_end_of_stack) {
7876
// Check for any extended backtraces.
7977
for (uint32_t bt = 0;
8078
bt < thread.GetProcess().GetNumExtendedBacktraceTypes(); bt++) {
@@ -184,7 +182,7 @@ void StackTraceRequestHandler::operator()(
184182
llvm::json::Object body;
185183

186184
lldb::SBFormat frame_format = dap.frame_format;
187-
bool include_all = false;
185+
bool include_all = dap.configuration.displayExtendedBacktrace;
188186

189187
if (const auto *format = arguments->getObject("format")) {
190188
// Indicates that all stack frames should be included, even those the debug

0 commit comments

Comments
 (0)