Valgrind: Fix heob check if executable exists

Task-number: QTCREATORBUG-20938
Change-Id: Id1c3cbf610b97a13209e6a767c5e881e9be18ac7
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Hannes Domani
2018-08-12 15:53:57 +02:00
parent 493c5396ff
commit 5a3a432396

View File

@@ -780,7 +780,8 @@ void MemcheckTool::heobAction()
TaskHub::requestPopup();
return;
}
if (!QFile::exists(executable)) {
if (!QFile::exists(executable)
&& !QFile::exists(Utils::HostOsInfo::withExecutableSuffix(executable))) {
const QString msg = tr("Heob: Cannot find %1.").arg(executable);
TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID);
TaskHub::requestPopup();