aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordt <qtc-committer@nokia.com>2009-11-12 17:34:41 +0100
committercon <qtc-committer@nokia.com>2009-11-12 18:44:51 +0100
commit9fb95513450fe46b22e2db152ea3f97fd56df571 (patch)
treeb76181f36c28a2282701693c020272794033c44e
parent18fb7f9e4c6d2a47ff80f370b74dd9dd7e0c41fb (diff)
Pretend that the gdbmacros.cpp is actually 5 minutes older then it is.
Fixes a bug that after package installation the debugging helpers are sometimes marked as invalid. Reviewed-By: hjk (cherry picked from commit 9f2940297f961599cd6c6e0061d792e92f6fe0eb)
-rw-r--r--src/plugins/projectexplorer/debugginghelper.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/debugginghelper.cpp b/src/plugins/projectexplorer/debugginghelper.cpp
index 61c5b4538d..460f90be30 100644
--- a/src/plugins/projectexplorer/debugginghelper.cpp
+++ b/src/plugins/projectexplorer/debugginghelper.cpp
@@ -103,6 +103,10 @@ QString DebuggingHelperLibrary::debuggingHelperLibraryByInstallData(const QStrin
{
const QString dumperSourcePath = Core::ICore::instance()->resourcePath() + QLatin1String("/gdbmacros/");
QDateTime lastModified = QFileInfo(dumperSourcePath + "gdbmacros.cpp").lastModified();
+ // We pretend that the lastmodified of gdbmacros.cpp is 5 minutes before what the file system says
+ // Because afer a installation from the package the modified dates of gdbmacros.cpp
+ // and the actual library are close to each other, but not deterministic in one direction
+ lastModified = lastModified.addSecs(-300);
foreach(const QString &directory, debuggingHelperLibraryDirectories(qtInstallData)) {
const QFileInfo fi(helperFilePath(directory));