forked from qt-creator/qt-creator
Debugger: inform user about misconfigured debugger settings
Change-Id: I304ae5147e04a89cd93800f8c44e82bd507f2d20 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -60,6 +60,7 @@
|
|||||||
#include <utils/temporarydirectory.h>
|
#include <utils/temporarydirectory.h>
|
||||||
#include <utils/temporaryfile.h>
|
#include <utils/temporaryfile.h>
|
||||||
#include <utils/url.h>
|
#include <utils/url.h>
|
||||||
|
#include <utils/winutils.h>
|
||||||
|
|
||||||
#include <coreplugin/icontext.h>
|
#include <coreplugin/icontext.h>
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
@@ -564,6 +565,17 @@ void DebuggerRunTool::start()
|
|||||||
if (!fixupParameters())
|
if (!fixupParameters())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (m_runParameters.cppEngineType == CdbEngineType
|
||||||
|
&& Utils::is64BitWindowsBinary(m_runParameters.inferior.executable)
|
||||||
|
&& !Utils::is64BitWindowsBinary(m_runParameters.debugger.executable)) {
|
||||||
|
reportFailure(
|
||||||
|
DebuggerPlugin::tr(
|
||||||
|
"%1 is a 64 bit executable which can not be debugged by a 32 bit Debugger.\n"
|
||||||
|
"Please select a 64 bit Debugger in the kit settings for this kit.")
|
||||||
|
.arg(m_runParameters.inferior.executable));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Utils::globalMacroExpander()->registerFileVariables(
|
Utils::globalMacroExpander()->registerFileVariables(
|
||||||
"DebuggedExecutable", tr("Debugged executable"),
|
"DebuggedExecutable", tr("Debugged executable"),
|
||||||
[this] { return m_runParameters.inferior.executable; }
|
[this] { return m_runParameters.inferior.executable; }
|
||||||
|
Reference in New Issue
Block a user