mirror of
https://github.com/HyperDbg/HyperDbg.git
synced 2026-07-28 02:15:29 +00:00
add support to the eval command in the user debugger
This commit is contained in:
parent
3f6d837a62
commit
31fc581135
7 changed files with 46 additions and 56 deletions
|
|
@ -135,7 +135,7 @@ ScriptEngineEvalSingleExpression(string Expr, PBOOLEAN HasError)
|
|||
* @return BOOLEAN Returns TRUE if it was successful
|
||||
*/
|
||||
BOOLEAN
|
||||
ScriptEngineExecuteSingleExpression(string Expr, BOOLEAN ShowErrorMessageIfAny, BOOLEAN IsFormat)
|
||||
ScriptEngineExecuteSingleExpression(CHAR * Expr, BOOLEAN ShowErrorMessageIfAny, BOOLEAN IsFormat)
|
||||
{
|
||||
PVOID CodeBuffer;
|
||||
UINT64 BufferAddress;
|
||||
|
|
@ -146,7 +146,7 @@ ScriptEngineExecuteSingleExpression(string Expr, BOOLEAN ShowErrorMessageIfAny,
|
|||
//
|
||||
// Run script engine handler
|
||||
//
|
||||
CodeBuffer = ScriptEngineParseWrapper((char *)Expr.c_str(), ShowErrorMessageIfAny);
|
||||
CodeBuffer = ScriptEngineParseWrapper(Expr, ShowErrorMessageIfAny);
|
||||
|
||||
if (CodeBuffer == NULL)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue