diff --git a/swig/dbg.i b/swig/dbg.i index af3b948..3692e22 100644 --- a/swig/dbg.i +++ b/swig/dbg.i @@ -22,12 +22,23 @@ PyObject *meminfo_vec_t_to_py(meminfo_vec_t &areas); %inline %{ // +//------------------------------------------------------------------------- PyObject *py_get_manual_regions() { meminfo_vec_t areas; get_manual_regions(&areas); return meminfo_vec_t_to_py(areas); } + +//------------------------------------------------------------------------- +PyObject *refresh_debugger_memory() +{ + invalidate_dbgmem_config(); + invalidate_dbgmem_contents(BADADDR, BADADDR); + if ( dbg != NULL && dbg->stopped_at_debug_event != NULL ) + dbg->stopped_at_debug_event(true); + Py_RETURN_NONE; +} // int idaapi DBG_Callback(void *ud, int notification_code, va_list va);