forked from qt-creator/qt-creator
Debugger: Fix C++20 complaint about or-ing different enums
Change-Id: Ie3648b3473476c3f71339006dff2c5dccf817b15 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -2781,7 +2781,7 @@ void CdbEngine::setupScripting(const DebuggerResponse &response)
|
|||||||
showMessage("Reading " + codeFile.toUserOutput(), LogInput);
|
showMessage("Reading " + codeFile.toUserOutput(), LogInput);
|
||||||
runCommand({QString("module = types.ModuleType('%1')").arg(module), ScriptCommand});
|
runCommand({QString("module = types.ModuleType('%1')").arg(module), ScriptCommand});
|
||||||
runCommand({QString("code = bytes.fromhex('%1').decode('utf-8')")
|
runCommand({QString("code = bytes.fromhex('%1').decode('utf-8')")
|
||||||
.arg(QString::fromUtf8(code->toHex())), ScriptCommand | DebuggerCommand::Silent});
|
.arg(QString::fromUtf8(code->toHex())), ScriptCommand | Silent});
|
||||||
runCommand({QString("exec(code, module.__dict__)"), ScriptCommand});
|
runCommand({QString("exec(code, module.__dict__)"), ScriptCommand});
|
||||||
runCommand({QString("sys.modules['%1'] = module").arg(module), ScriptCommand});
|
runCommand({QString("sys.modules['%1'] = module").arg(module), ScriptCommand});
|
||||||
runCommand({QString("import %1").arg(module), ScriptCommand});
|
runCommand({QString("import %1").arg(module), ScriptCommand});
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ private:
|
|||||||
};
|
};
|
||||||
enum CommandFlags {
|
enum CommandFlags {
|
||||||
NoFlags = 0,
|
NoFlags = 0,
|
||||||
|
Silent = DebuggerCommand::Silent,
|
||||||
BuiltinCommand = DebuggerCommand::Silent << 1,
|
BuiltinCommand = DebuggerCommand::Silent << 1,
|
||||||
ExtensionCommand = DebuggerCommand::Silent << 2,
|
ExtensionCommand = DebuggerCommand::Silent << 2,
|
||||||
ScriptCommand = DebuggerCommand::Silent << 3
|
ScriptCommand = DebuggerCommand::Silent << 3
|
||||||
|
|||||||
Reference in New Issue
Block a user