diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-02-11 10:44:40 +0100 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-02-11 10:44:40 +0100 |
| commit | 356da89a4e2e6e50ceade12f286d104fe1c17eae (patch) | |
| tree | 1fafbfebd44b937eb63906453a285ad5a4b1558a /lib/MiddleWare/test.cpp | |
| parent | 3192f468fa5e7f10c664cca671246f962d1d36d1 (diff) | |
| parent | 08ec10a5f6a2d6159e926cb075ad3eb4964ced50 (diff) | |
| download | abrt-356da89a4e2e6e50ceade12f286d104fe1c17eae.tar.gz abrt-356da89a4e2e6e50ceade12f286d104fe1c17eae.tar.xz abrt-356da89a4e2e6e50ceade12f286d104fe1c17eae.zip | |
Merge branch 'master' of git://git.fedorahosted.org/git/crash-catcher
Diffstat (limited to 'lib/MiddleWare/test.cpp')
| -rw-r--r-- | lib/MiddleWare/test.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/MiddleWare/test.cpp b/lib/MiddleWare/test.cpp index b75bab9..8424aa9 100644 --- a/lib/MiddleWare/test.cpp +++ b/lib/MiddleWare/test.cpp @@ -40,13 +40,17 @@ int main(int argc, char** argv) char pid[100]; sprintf(pid, "%d", getpid()); - dd.Create(std::string(DEBUG_DUMPS_DIR)+"/"+pid); - dd.SaveProc(pid); + dd.Create(std::string(DEBUG_DUMPS_DIR)+"/"+pid, pid); dd.SaveText(FILENAME_LANGUAGE, "CCpp"); dd.SaveBinary(FILENAME_BINARYDATA1, "ass0-9as", sizeof("ass0-9as")); - dd.SaveText(FILENAME_TIME, "1111111111"); - middleWare.SaveDebugDumpToDatabase(std::string(DEBUG_DUMPS_DIR)+"/"+pid); + CMiddleWare::crash_info_t info; + middleWare.SaveDebugDump(std::string(DEBUG_DUMPS_DIR)+"/"+pid, info); + + std::cout << "Application Crashed! " << + info.m_sPackage << ": " << + info.m_sExecutable << "(" << + info.m_sCount << ")" << std::endl; } catch (std::string sError) |
