From e7541bf72e56f56c9af45fccbb8f77efe35dcb94 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 9 Dec 2009 13:26:35 +0100 Subject: CCpp analyzer: added "info sharedlib" (https://fedorahosted.org/abrt/ticket/90) Signed-off-by: Denys Vlasenko --- lib/Plugins/CCpp.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp index 5f0c380..8cdba9c 100644 --- a/lib/Plugins/CCpp.cpp +++ b/lib/Plugins/CCpp.cpp @@ -277,7 +277,7 @@ static void GetBacktrace(const char *pDebugDumpDir, unsetenv("TERM"); putenv((char*)"TERM=dumb"); - char *args[11]; + char *args[13]; args[0] = (char*)"gdb"; args[1] = (char*)"-batch"; @@ -315,7 +315,9 @@ static void GetBacktrace(const char *pDebugDumpDir, args[8] = (char*)"-ex"; args[9] = (char*)"thread apply all backtrace full"; - args[10] = NULL; + args[10] = (char*)"-ex"; + args[11] = (char*)"info sharedlib"; + args[12] = NULL; ExecVP(args, atoi(UID.c_str()), pBacktrace); } -- cgit From 1ab4f7ab3ca04e0b8ba17eec75cf18345d6b3fbc Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 9 Dec 2009 14:54:51 +0100 Subject: fix incorrect wording This looked wrong: "This crash has been reported, you can find the report(s) at: Kernel oops report was uploaded." Signed-off-by: Denys Vlasenko --- lib/Plugins/KerneloopsReporter.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Plugins/KerneloopsReporter.cpp b/lib/Plugins/KerneloopsReporter.cpp index 29094e8..26430be 100644 --- a/lib/Plugins/KerneloopsReporter.cpp +++ b/lib/Plugins/KerneloopsReporter.cpp @@ -113,7 +113,12 @@ std::string CKerneloopsReporter::Report(const map_crash_report_t& pCrashReport, /* FIXME: be more informative */ throw CABRTException(EXCEP_PLUGIN, "CKerneloopsReporter::Report(): Report has not been sent"); } - return "Kernel oops report was uploaded."; + /* Server replies with: + * 200 thank you for submitting the kernel oops information + * RemoteIP: 34192fd15e34bf60fac6a5f01bba04ddbd3f0558 + * - no URL or bug ID apparently... + */ + return "Kernel oops report was uploaded"; } void CKerneloopsReporter::SetSettings(const map_plugin_settings_t& pSettings) -- cgit