forked from qt-creator/qt-creator
Debugger: Fix inappropriate debugger warning when using mixed debugging
Change-Id: I3fb1818e36d01f69cca6ad07653afdc49bda702e Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1796,7 +1796,7 @@ void DebuggerEngine::validateExecutable()
|
|||||||
QString detailedWarning;
|
QString detailedWarning;
|
||||||
switch (sp->toolChainAbi.binaryFormat()) {
|
switch (sp->toolChainAbi.binaryFormat()) {
|
||||||
case Abi::PEFormat: {
|
case Abi::PEFormat: {
|
||||||
if (sp->masterEngineType != CdbEngineType) {
|
if (sp->cppEngineType != CdbEngineType) {
|
||||||
warnOnInappropriateDebugger = true;
|
warnOnInappropriateDebugger = true;
|
||||||
detailedWarning = tr(
|
detailedWarning = tr(
|
||||||
"The inferior is in the Portable Executable format.\n"
|
"The inferior is in the Portable Executable format.\n"
|
||||||
@@ -1820,7 +1820,7 @@ void DebuggerEngine::validateExecutable()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case Abi::ElfFormat: {
|
case Abi::ElfFormat: {
|
||||||
if (sp->masterEngineType == CdbEngineType) {
|
if (sp->cppEngineType == CdbEngineType) {
|
||||||
warnOnInappropriateDebugger = true;
|
warnOnInappropriateDebugger = true;
|
||||||
detailedWarning = tr(
|
detailedWarning = tr(
|
||||||
"The inferior is in the ELF format.\n"
|
"The inferior is in the ELF format.\n"
|
||||||
|
Reference in New Issue
Block a user