Assume go to address to be hexadecimal

This commit is contained in:
Megamouse 2019-01-02 18:00:40 +01:00
parent 6fe615605a
commit 6c10cb2eb5
1 changed files with 2 additions and 1 deletions

View File

@ -549,7 +549,8 @@ u64 debugger_frame::EvaluateExpression(const QString& expression)
} }
} }
return static_cast<ulong>(scriptEngine.evaluate(expression).toNumber()); const QString fixed_expression = QRegExp("^[A-Fa-f0-9]+$").exactMatch(expression) ? "0x" + expression : expression;
return static_cast<ulong>(scriptEngine.evaluate(fixed_expression).toNumber());
} }
void debugger_frame::ClearBreakpoints() void debugger_frame::ClearBreakpoints()