From ab7a03431e40d93c2d5c1898fcaa7bbf7ce44bae Mon Sep 17 00:00:00 2001 From: "elias.bachaalany" Date: Fri, 13 Nov 2009 12:24:06 +0000 Subject: [PATCH] idc.py: RefreshDebuggerMemory() was broken --- swig/dbg.i | 11 +++++++++++ 1 file changed, 11 insertions(+) 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);