diff --git a/src/apps/debugger/controllers/DebugReportGenerator.cpp b/src/apps/debugger/controllers/DebugReportGenerator.cpp index a5b985c4a4..5c175c17c5 100644 --- a/src/apps/debugger/controllers/DebugReportGenerator.cpp +++ b/src/apps/debugger/controllers/DebugReportGenerator.cpp @@ -338,7 +338,7 @@ DebugReportGenerator::_DumpDebuggedThreadInfo(BString& _output, containerLocker.Unlock(); _ResolveValueIfNeeded(child->Node(), frame, 1); containerLocker.Lock(); - UiUtils::PrintValueNodeGraph(_output, frame, child, 3, 1); + UiUtils::PrintValueNodeGraph(_output, child, 3, 1); } _output << "\n"; } diff --git a/src/apps/debugger/user_interface/util/UiUtils.cpp b/src/apps/debugger/user_interface/util/UiUtils.cpp index 9559f9f772..fa93d7dd52 100644 --- a/src/apps/debugger/user_interface/util/UiUtils.cpp +++ b/src/apps/debugger/user_interface/util/UiUtils.cpp @@ -163,8 +163,8 @@ UiUtils::ReportNameForTeam(::Team* team, char* buffer, size_t bufferSize) /*static*/ void -UiUtils::PrintValueNodeGraph(BString& _output, StackFrame* frame, - ValueNodeChild* child, int32 indentLevel, int32 maxDepth) +UiUtils::PrintValueNodeGraph(BString& _output, ValueNodeChild* child, + int32 indentLevel, int32 maxDepth) { _output.Append('\t', indentLevel); _output << child->Name(); @@ -215,7 +215,7 @@ UiUtils::PrintValueNodeGraph(BString& _output, StackFrame* frame, // level node contains no data of intereest. if (node->ChildAt(i)->GetType()->Kind() != TYPE_COMPOUND || maxDepth > 1) { - PrintValueNodeGraph(_output, frame, node->ChildAt(i), + PrintValueNodeGraph(_output, node->ChildAt(i), indentLevel + 1, maxDepth - 1); } } diff --git a/src/apps/debugger/user_interface/util/UiUtils.h b/src/apps/debugger/user_interface/util/UiUtils.h index 3e81de83de..437b34c864 100644 --- a/src/apps/debugger/user_interface/util/UiUtils.h +++ b/src/apps/debugger/user_interface/util/UiUtils.h @@ -34,7 +34,6 @@ public: // this function assumes the value nodes have already been resolved // (if possible). static void PrintValueNodeGraph(BString& _output, - StackFrame* frame, ValueNodeChild* child, int32 indentLevel, int32 maxDepth); };