Debugger: Fix inappropriate debugger warning when using mixed debugging

Change-Id: I3fb1818e36d01f69cca6ad07653afdc49bda702e
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
David Schulz
2017-06-22 14:02:56 +02:00
parent ffc97df7a6
commit 7293c01210

View File

@@ -1796,7 +1796,7 @@ void DebuggerEngine::validateExecutable()
QString detailedWarning;
switch (sp->toolChainAbi.binaryFormat()) {
case Abi::PEFormat: {
if (sp->masterEngineType != CdbEngineType) {
if (sp->cppEngineType != CdbEngineType) {
warnOnInappropriateDebugger = true;
detailedWarning = tr(
"The inferior is in the Portable Executable format.\n"
@@ -1820,7 +1820,7 @@ void DebuggerEngine::validateExecutable()
break;
}
case Abi::ElfFormat: {
if (sp->masterEngineType == CdbEngineType) {
if (sp->cppEngineType == CdbEngineType) {
warnOnInappropriateDebugger = true;
detailedWarning = tr(
"The inferior is in the ELF format.\n"