mirror of
https://github.com/cemu-project/idapython.git
synced 2024-11-24 10:09:20 +01:00
78c79f85b9
What's new: - Proper multi-threaded support - Better PyObject reference counting with ref_t and newref_t helper classes - Improved the pywraps/deployment script - Added IDAViewWrapper class and example - Added idc.GetDisasmEx() - Added idc.AddSegEx() - Added idc.GetLocalTinfo() - Added idc.ApplyType() - Updated type information implementation - Introduced the idaapi.require() - see http://www.hexblog.com/?p=749 - set REMOVE_CWD_SYS_PATH=1 by default in python.cfg (remove current directory from the import search path). Various bugfixes: - fixed various memory leaks - asklong/askaddr/asksel (and corresponding idc.py functions) were returning results truncated to 32 bits in IDA64 - fix wrong documentation for idc.SizeOf - GetFloat/GetDouble functions did not take into account endianness of the processor - idaapi.NO_PROCESS was not defined, and was causing GetProcessPid() to fail - idc.py: insert escape characters to string parameter when call Eval() - idc.SaveFile/savefile were always overwriting an existing file instead of writing only the new data - PluginForm.Close() wasn't passing its arguments to the delegate function, resulting in an error.
27 lines
891 B
C++
27 lines
891 B
C++
//------------------------------------------------------------------------
|
|
//<inline(py_name)>
|
|
//------------------------------------------------------------------------
|
|
PyObject *py_get_debug_names(ea_t ea1, ea_t ea2)
|
|
{
|
|
// Get debug names
|
|
ea_name_vec_t names;
|
|
PYW_GIL_CHECK_LOCKED_SCOPE();
|
|
Py_BEGIN_ALLOW_THREADS;
|
|
get_debug_names(ea1, ea2, names);
|
|
Py_END_ALLOW_THREADS;
|
|
PyObject *dict = Py_BuildValue("{}");
|
|
if (dict != NULL)
|
|
{
|
|
for (ea_name_vec_t::iterator it=names.begin();it!=names.end();++it)
|
|
{
|
|
PyDict_SetItem(dict,
|
|
Py_BuildValue(PY_FMT64, it->ea),
|
|
PyString_FromString(it->name.c_str()));
|
|
}
|
|
}
|
|
return dict;
|
|
}
|
|
//------------------------------------------------------------------------
|
|
//</inline(py_name)>
|
|
//------------------------------------------------------------------------
|