1
0
Fork 0

BRIDGE: added DbgEval function

This commit is contained in:
mrexodia 2017-04-13 21:42:24 +02:00
parent f2a759434d
commit c02e3672c7
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
2 changed files with 10 additions and 0 deletions

View File

@ -1031,6 +1031,15 @@ BRIDGE_IMPEXP bool DbgAnalyzeFunction(duint entry, BridgeCFGraphList* graph)
return !!_dbg_sendmessage(DBG_ANALYZE_FUNCTION, (void*)entry, graph);
}
BRIDGE_IMPEXP duint DbgEval(const char* expression, bool* success)
{
duint value = 0;
auto res = _dbg_valfromstring(expression, &value);
if(success)
*success = res;
return value;
}
BRIDGE_IMPEXP const char* GuiTranslateText(const char* Source)
{
EnterCriticalSection(&csTranslate);

View File

@ -877,6 +877,7 @@ BRIDGE_IMPEXP DWORD DbgGetThreadId();
BRIDGE_IMPEXP duint DbgGetPebAddress(DWORD ProcessId);
BRIDGE_IMPEXP duint DbgGetTebAddress(DWORD ThreadId);
BRIDGE_IMPEXP bool DbgAnalyzeFunction(duint entry, BridgeCFGraphList* graph);
BRIDGE_IMPEXP duint DbgEval(const char* expression, bool* success = 0);
//Gui defines
#define GUI_PLUGIN_MENU 0