diff --git a/src/plugins/projectexplorer/debugginghelper.cpp b/src/plugins/projectexplorer/debugginghelper.cpp index 61c5b4538d1a19a8b778a729afbfaa7bd4b48e22..460f90be30e36c3ab029ec72099cf3322ecd2106 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));