BRIDGE: added DbgEval function
This commit is contained in:
parent
f2a759434d
commit
c02e3672c7
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue