forked from qt-creator/qt-creator
Debugger: Fix loading core files from the command line
Make qtcreator -debug [exe,]core=/path/to/core work again. Change-Id: I16d1e388d74409d4deed2840dd768eab8c26cf40 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -130,7 +130,6 @@ GdbCoreEngine::readExecutableNameFromCore(const QString &debuggerCommand, const
|
||||
CoreInfo cinfo;
|
||||
#if 0
|
||||
ElfReader reader(coreFile);
|
||||
cinfo.isCore = false;
|
||||
cinfo.rawStringFromCore = QString::fromLocal8Bit(reader.readCoreName(&cinfo.isCore));
|
||||
cinfo.foundExecutableName = findExecutableFromName(cinfo.rawStringFromCore, coreFile);
|
||||
#else
|
||||
@@ -161,7 +160,6 @@ GdbCoreEngine::readExecutableNameFromCore(const QString &debuggerCommand, const
|
||||
}
|
||||
}
|
||||
}
|
||||
cinfo.isCore = false;
|
||||
#endif
|
||||
return cinfo;
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ public:
|
||||
{
|
||||
QString rawStringFromCore;
|
||||
QString foundExecutableName; // empty if no corresponding exec could be found
|
||||
bool isCore;
|
||||
bool isCore = false;
|
||||
};
|
||||
static CoreInfo readExecutableNameFromCore(const QString &debuggerCmd, const QString &coreFile);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user