diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-04-24 12:18:31 +0200 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-04-24 12:18:31 +0200 |
| commit | 68ba4945437e12eaa1dead6df27b58ea408f63e8 (patch) | |
| tree | a608d71e76dc82bf9ffdec95452c429d5aec29d2 /lib/Plugins | |
| parent | 7b2d4874b7bd992ef3f09124b7ebbc346eba01f4 (diff) | |
final touch on commlayer, minor fixes in exceptions (zprikryl)
Diffstat (limited to 'lib/Plugins')
| -rw-r--r-- | lib/Plugins/CCpp.cpp | 12 | ||||
| -rw-r--r-- | lib/Plugins/Makefile.am | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp index 286f730..7aacc2f 100644 --- a/lib/Plugins/CCpp.cpp +++ b/lib/Plugins/CCpp.cpp @@ -23,6 +23,7 @@ #include "ABRTException.h" #include "DebugDump.h" #include "PluginSettings.h" +#include "CommLayer.h" #include <fstream> #include <sstream> #include <iostream> @@ -88,6 +89,8 @@ std::string CAnalyzerCCpp::CreateHash(const std::string& pInput) void CAnalyzerCCpp::InstallDebugInfos(const std::string& pPackage) { + CommLayerInner::status("Installing debug infos..."); + std::string packageName = pPackage.substr(0, pPackage.rfind("-", pPackage.rfind("-")-1)); char buff[1024]; int pipein[2], pipeout[2]; @@ -192,6 +195,8 @@ void CAnalyzerCCpp::InstallDebugInfos(const std::string& pPackage) void CAnalyzerCCpp::GetBacktrace(const std::string& pDebugDumpDir, std::string& pBacktrace) { + CommLayerInner::status("Getting backtrace..."); + std::string tmpFile = "/tmp/" + pDebugDumpDir.substr(pDebugDumpDir.rfind("/")); std::ofstream fTmp; std::string UID; @@ -417,6 +422,8 @@ void CAnalyzerCCpp::ExecVP(const char* pCommand, char* const pArgs[], const std: std::string CAnalyzerCCpp::GetLocalUUID(const std::string& pDebugDumpDir) { + CommLayerInner::status("Getting global universal unique identification..."); + CDebugDump dd; std::string UID; std::string executable; @@ -439,6 +446,8 @@ std::string CAnalyzerCCpp::GetLocalUUID(const std::string& pDebugDumpDir) } std::string CAnalyzerCCpp::GetGlobalUUID(const std::string& pDebugDumpDir) { + CommLayerInner::status("Getting local universal unique identification..."); + std::string backtrace; std::string executable; std::string package; @@ -455,9 +464,12 @@ std::string CAnalyzerCCpp::GetGlobalUUID(const std::string& pDebugDumpDir) void CAnalyzerCCpp::CreateReport(const std::string& pDebugDumpDir) { + CommLayerInner::status("Starting report creation..."); + std::string package; std::string backtrace; CDebugDump dd; + dd.Open(pDebugDumpDir); if (dd.Exist(FILENAME_BACKTRACE)) { diff --git a/lib/Plugins/Makefile.am b/lib/Plugins/Makefile.am index 7288c36..3b91de2 100644 --- a/lib/Plugins/Makefile.am +++ b/lib/Plugins/Makefile.am @@ -17,7 +17,7 @@ dist_pluginsconf_DATA = CCpp.conf Mailx.conf SQLite3.conf Logger.conf Kerneloops libCCpp_la_SOURCES = CCpp.cpp CCpp.h PluginSettings.h libCCpp_la_LDFLAGS = -avoid-version libCCpp_la_LIBADD = $(NSS_LIBS) -libCCpp_la_CPPFLAGS = -I$(srcdir)/../MiddleWare -I$(srcdir)/../Utils -DCCPP_HOOK_PATH=\"${libexecdir}/hookCCpp\" -DDEBUG_DUMPS_DIR=\"$(DEBUG_DUMPS_DIR)\" $(NSS_CFLAGS) +libCCpp_la_CPPFLAGS = -I$(srcdir)/../MiddleWare -I$(srcdir)/../Utils -I$(srcdir)/../CommLayer -DCCPP_HOOK_PATH=\"${libexecdir}/hookCCpp\" -DDEBUG_DUMPS_DIR=\"$(DEBUG_DUMPS_DIR)\" $(NSS_CFLAGS) # Kerneloops libKerneloops_la_SOURCES = Kerneloops.cpp Kerneloops.h KerneloopsSysLog.cpp KerneloopsSysLog.h PluginSettings.h |
