From 7b54a461ab5fde77ab74cebddecfb683a8fc504e Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 15 Sep 2009 17:09:54 +0200 Subject: small correction to previous commit (forgot .debug suffix) Signed-off-by: Denys Vlasenko --- lib/Plugins/CCpp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp index 18c3bfbb..cc9eaf4a 100644 --- a/lib/Plugins/CCpp.cpp +++ b/lib/Plugins/CCpp.cpp @@ -353,7 +353,7 @@ static void InstallDebugInfos(const std::string& pDebugDumpDir) if (word2[0] && word2[1] && is_hexstr(word2)) { struct stat sb; - char *fn = xasprintf("/usr/lib/debug/.build-id/%.2s/%s", word2, word2 + 2); + char *fn = xasprintf("/usr/lib/debug/.build-id/%.2s/%s.debug", word2, word2 + 2); /* Not lstat: this is a symlink and we want link's TARGET to exist */ file_exists = stat(fn, &sb) == 0 && S_ISREG(sb.st_mode); free(fn); -- cgit