debugger: attempt to re-try examining dumper location after build.

Still does not work as the location itself is unknown.
This commit is contained in:
hjk
2010-07-21 12:04:20 +02:00
parent 3b64a6ccbf
commit f292254967
4 changed files with 22 additions and 17 deletions

View File

@@ -695,16 +695,15 @@ bool GdbEngine::checkDebuggingHelpersClassic()
if (!qtDumperLibraryEnabled())
return false;
const QString lib = qtDumperLibraryName();
const QFileInfo fi(lib);
if (!fi.exists()) {
const QStringList &locations = qtDumperLibraryLocations();
const QString loc = locations.join(QLatin1String(", "));
const QString msg = tr("The debugging helper library was not found at %1.").arg(loc);
showMessage(msg);
showQtDumperLibraryWarning(msg);
return false;
}
return true;
if (QFileInfo(lib).exists())
return true;
const QStringList &locations = qtDumperLibraryLocations();
const QString loc = locations.join(QLatin1String(", "));
const QString msg = tr("The debugging helper library was not found at %1.")
.arg(loc);
showMessage(msg);
showQtDumperLibraryWarning(msg); // This might build the library.
return QFileInfo(lib).exists();
}
void GdbEngine::handleQueryDebuggingHelperClassic(const GdbResponse &response)