summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-11-18 18:54:17 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-11-18 18:54:17 +0100
commit8bb4a3e25654fdfef7b9a378a0177ed26114e83a (patch)
treed2f59aec867fce3516a5a017c863fa0fb84201d3
parente55e12659f0dce36224c48d4c86f33cfb4b527b5 (diff)
downloadabrt-8bb4a3e25654fdfef7b9a378a0177ed26114e83a.tar.gz
abrt-8bb4a3e25654fdfef7b9a378a0177ed26114e83a.tar.xz
abrt-8bb4a3e25654fdfef7b9a378a0177ed26114e83a.zip
lib/Plugins/CCpp.cpp: forgotten chunks
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--lib/Plugins/CCpp.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp
index 93156a22..73334958 100644
--- a/lib/Plugins/CCpp.cpp
+++ b/lib/Plugins/CCpp.cpp
@@ -251,7 +251,7 @@ static int rate_backtrace(const char *backtrace)
return 0;
}
-static void GetBacktrace(const char *pDebugDumpDir, string& pBacktrace)
+static void GetBacktrace(const char *pDebugDumpDir, const char *pDebugInfoDirs, string& pBacktrace)
{
update_client(_("Getting backtrace..."));
@@ -277,7 +277,7 @@ static void GetBacktrace(const char *pDebugDumpDir, string& pBacktrace)
// (https://bugzilla.redhat.com/show_bug.cgi?id=528668):
args[2] = (char*)"-ex";
string dfd = "set debug-file-directory /usr/lib/debug";
- const char *p = m_sDebugInfoDirs.c_str();
+ const char *p = pDebugInfoDirs;
while (1)
{
const char *colon_or_nul = strchrnul(p, ':');
@@ -286,9 +286,9 @@ static void GetBacktrace(const char *pDebugDumpDir, string& pBacktrace)
dfd += "/usr/lib/debug";
if (*colon_or_nul != ':')
break;
- p = colon + 1;
+ p = colon_or_nul + 1;
}
- args[3] = (char*)dfd.c_str()
+ args[3] = (char*)dfd.c_str();
/*
* Unfortunately, "file BINARY_FILE" doesn't work well if BINARY_FILE
@@ -932,7 +932,7 @@ void CAnalyzerCCpp::CreateReport(const char *pDebugDumpDir, int force)
VERB1 log(_("Skipping debuginfo installation"));
}
- GetBacktrace(pDebugDumpDir, backtrace);
+ GetBacktrace(pDebugDumpDir, m_sDebugInfoDirs.c_str(), backtrace);
dd.Open(pDebugDumpDir);
dd.SaveText(FILENAME_BACKTRACE, (build_ids + backtrace).c_str());