From 4f2c48821c43740b593e0dd84d995e02af59d755 Mon Sep 17 00:00:00 2001 From: dt Date: Thu, 17 Sep 2009 15:47:28 +0200 Subject: [PATCH] Treat outdated as missing. --- src/plugins/projectexplorer/debugginghelper.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/debugginghelper.cpp b/src/plugins/projectexplorer/debugginghelper.cpp index e32b2a21f2f..6c39e7376d8 100644 --- a/src/plugins/projectexplorer/debugginghelper.cpp +++ b/src/plugins/projectexplorer/debugginghelper.cpp @@ -101,9 +101,12 @@ QStringList DebuggingHelperLibrary::debuggingHelperLibraryLocationsByInstallData QString DebuggingHelperLibrary::debuggingHelperLibraryByInstallData(const QString &qtInstallData) { + const QString dumperSourcePath = Core::ICore::instance()->resourcePath() + QLatin1String("/gdbmacros/"); + QDateTime lastModified = QFileInfo(dumperSourcePath + "gdbmacros.cpp").lastModified(); + foreach(const QString &directory, debuggingHelperLibraryDirectories(qtInstallData)) { const QFileInfo fi(helperFilePath(directory)); - if (fi.exists()) + if (fi.exists() && fi.lastModified() > lastModified) return fi.filePath(); } return QString();