summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/CCpp.cpp
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-04-24 12:18:31 +0200
committerJiri Moskovcak <jmoskovc@redhat.com>2009-04-24 12:18:31 +0200
commit68ba4945437e12eaa1dead6df27b58ea408f63e8 (patch)
treea608d71e76dc82bf9ffdec95452c429d5aec29d2 /lib/Plugins/CCpp.cpp
parent7b2d4874b7bd992ef3f09124b7ebbc346eba01f4 (diff)
downloadabrt-68ba4945437e12eaa1dead6df27b58ea408f63e8.tar.gz
abrt-68ba4945437e12eaa1dead6df27b58ea408f63e8.tar.xz
abrt-68ba4945437e12eaa1dead6df27b58ea408f63e8.zip
final touch on commlayer, minor fixes in exceptions (zprikryl)
Diffstat (limited to 'lib/Plugins/CCpp.cpp')
-rw-r--r--lib/Plugins/CCpp.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp
index 286f730f..7aacc2fc 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))
{