forked from qt-creator/qt-creator
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:
@@ -780,7 +780,8 @@ void MemcheckTool::heobAction()
|
|||||||
TaskHub::requestPopup();
|
TaskHub::requestPopup();
|
||||||
return;
|
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);
|
const QString msg = tr("Heob: Cannot find %1.").arg(executable);
|
||||||
TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID);
|
TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID);
|
||||||
TaskHub::requestPopup();
|
TaskHub::requestPopup();
|
||||||
|
Reference in New Issue
Block a user