Commit 5d0b5b35 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Debugger: Minor optimization in coredump lookup

Change-Id: I162366ce98078ba49311c96772772258e3f3dcb7
Reviewed-by: default avatarhjk <>
parent 24660c23
......@@ -88,14 +88,14 @@ void GdbCoreEngine::setupEngine()
static QString findExecutableFromName(const QString &fileNameFromCore, const QString &coreFile)
if (QFileInfo(fileNameFromCore).isFile())
return fileNameFromCore;
if (fileNameFromCore.isEmpty())
return QString();
return fileNameFromCore;
QFileInfo fi(fileNameFromCore);
if (fi.isFile())
return fileNameFromCore;
// turn the filename into an absolute path, using the location of the core as a hint
QString absPath;
QFileInfo fi(fileNameFromCore);
if (fi.isAbsolute()) {
absPath = fileNameFromCore;
} else {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment