/* #<pydoc> def dbg_get_memory_info(): """ This function returns the memory configuration of a debugged process. @return: None if no debugger is active tuple(startEA, endEA, name, sclass, sbase, bitness, perm) """ pass #</pydoc> */ static PyObject *dbg_get_memory_info() { PYW_GIL_CHECK_LOCKED_SCOPE(); if ( !dbg_can_query() ) Py_RETURN_NONE; // Invalidate memory meminfo_vec_t areas; Py_BEGIN_ALLOW_THREADS; invalidate_dbgmem_config(); invalidate_dbgmem_contents(BADADDR, BADADDR); get_dbg_memory_info(&areas); Py_END_ALLOW_THREADS; return meminfo_vec_t_to_py(areas); }
/* #<pydoc> def get_manual_regions(): """ Returns the manual memory regions @return: list(startEA, endEA, name, sclass, sbase, bitness, perm) """ pass #</pydoc> */ static PyObject *py_get_manual_regions() { meminfo_vec_t areas; get_manual_regions(&areas); return meminfo_vec_t_to_py(areas); }
/* #<pydoc> def get_manual_regions(): """ Returns the manual memory regions @return: list(start_ea, end_ea, name, sclass, sbase, bitness, perm) """ pass #</pydoc> */ static PyObject *py_get_manual_regions() { meminfo_vec_t ranges; get_manual_regions(&ranges); return meminfo_vec_t_to_py(ranges); }