summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorZdenek Prikryl <zprikryl@redhat.com>2009-02-12 11:56:02 +0100
committerZdenek Prikryl <zprikryl@redhat.com>2009-02-12 11:56:02 +0100
commitc93222d1407ede085833d3a91bfeda5f0f910eb4 (patch)
tree3bba334fc6596e77b4c2a0ca37e4c3867835aec2 /lib
parent3462c9b05b3bc804003dba8af21f31f6df9f0b8c (diff)
downloadabrt-c93222d1407ede085833d3a91bfeda5f0f910eb4.tar.gz
abrt-c93222d1407ede085833d3a91bfeda5f0f910eb4.tar.xz
abrt-c93222d1407ede085833d3a91bfeda5f0f910eb4.zip
added new crash information, "cmdline"
Diffstat (limited to 'lib')
-rw-r--r--lib/MiddleWare/MiddleWare.cpp1
-rw-r--r--lib/MiddleWare/Reporter.h1
-rw-r--r--lib/Plugins/Mailx.cpp3
3 files changed, 5 insertions, 0 deletions
diff --git a/lib/MiddleWare/MiddleWare.cpp b/lib/MiddleWare/MiddleWare.cpp
index 1dd12de..5a5e39d 100644
--- a/lib/MiddleWare/MiddleWare.cpp
+++ b/lib/MiddleWare/MiddleWare.cpp
@@ -93,6 +93,7 @@ void CMiddleWare::DebugDump2Report(const std::string& pDebugDumpDir, CReporter::
dd.LoadText(FILENAME_KERNEL, pReport.m_sKernel);
dd.LoadText(FILENAME_PACKAGE, pReport.m_sPackage);
dd.LoadText(FILENAME_EXECUTABLE, pReport.m_sExecutable);
+ dd.LoadText(FILENAME_CMDLINE, pReport.m_sCmdLine);
if (dd.Exist(FILENAME_TEXTDATA1))
{
diff --git a/lib/MiddleWare/Reporter.h b/lib/MiddleWare/Reporter.h
index 5419bdc..8f23065 100644
--- a/lib/MiddleWare/Reporter.h
+++ b/lib/MiddleWare/Reporter.h
@@ -33,6 +33,7 @@ class CReporter : public CPlugin
std::string m_sArchitecture;
std::string m_sKernel;
std::string m_sExecutable;
+ std::string m_sCmdLine;
std::string m_sPackage;
std::string m_sTextData1;
std::string m_sTextData2;
diff --git a/lib/Plugins/Mailx.cpp b/lib/Plugins/Mailx.cpp
index eb73184..cb26e39 100644
--- a/lib/Plugins/Mailx.cpp
+++ b/lib/Plugins/Mailx.cpp
@@ -74,6 +74,9 @@ void CMailx::Report(const report_t& pReport)
ss << "Executable" << std::endl;
ss << "----------" << std::endl;
ss << pReport.m_sExecutable << std::endl << std::endl;
+ ss << "CmdLine" << std::endl;
+ ss << "----------" << std::endl;
+ ss << pReport.m_sCmdLine << std::endl << std::endl;
ss << "Created report" << std::endl;
ss << "==============" << std::endl;
ss << "Text reports" << std::endl;