diff options
Diffstat (limited to 'lib/MiddleWare/MiddleWare.cpp')
-rw-r--r-- | lib/MiddleWare/MiddleWare.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/MiddleWare/MiddleWare.cpp b/lib/MiddleWare/MiddleWare.cpp index 118bab08..56709db2 100644 --- a/lib/MiddleWare/MiddleWare.cpp +++ b/lib/MiddleWare/MiddleWare.cpp @@ -137,7 +137,7 @@ void CMiddleWare::CreateCrashReport(const std::string& pUUID, dd.SaveText(FILENAME_UUID, UUID); dd.Close(); - //RunAnalyzerActions(analyzer, row.m_sDebugDumpDir); + RunAnalyzerActions(analyzer, row.m_sDebugDumpDir); DebugDumpToCrashReport(row.m_sDebugDumpDir, pCrashReport); crash_file_t file; @@ -293,6 +293,17 @@ int CMiddleWare::SaveUUIDToDebugDump(const std::string& pDebugDumpDir) void CMiddleWare::RunAnalyzerActions(const std::string& pAnalyzer, const std::string& pDebugDumpDir) { + if (m_mapAnalyzerActions.find(pAnalyzer) != m_mapAnalyzerActions.end()) + { + set_actions_t::iterator it_a; + for (it_a = m_mapAnalyzerActions[pAnalyzer].begin(); + it_a != m_mapAnalyzerActions[pAnalyzer].end(); + it_a++) + { + CAction* action = m_pPluginManager->GetAction((*it_a).first); + action->Run(pDebugDumpDir, (*it_a).second); + } + } } int CMiddleWare::SaveDebugDumpToDatabase(const std::string& pDebugDumpDir, crash_info_t& pCrashInfo) |