diff --git a/src/apps/debugger/controllers/DebugReportGenerator.cpp b/src/apps/debugger/controllers/DebugReportGenerator.cpp index 6abebe164c..32d6c40685 100644 --- a/src/apps/debugger/controllers/DebugReportGenerator.cpp +++ b/src/apps/debugger/controllers/DebugReportGenerator.cpp @@ -122,6 +122,10 @@ DebugReportGenerator::_GenerateReport(const entry_ref& outputPath) if (result != B_OK) return result; + result = _DumpRunningThreads(output); + if (result != B_OK) + return result; + result = _DumpLoadedImages(output); if (result != B_OK) return result; @@ -134,10 +138,6 @@ DebugReportGenerator::_GenerateReport(const entry_ref& outputPath) if (result != B_OK) return result; - result = _DumpRunningThreads(output); - if (result != B_OK) - return result; - result = file.Write(output.String(), output.Length()); if (result < 0) return result;