mirror of
https://github.com/cemu-project/idapython.git
synced 2024-11-25 02:26:55 +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.
71 lines
1.3 KiB
OpenEdge ABL
71 lines
1.3 KiB
OpenEdge ABL
// Ignore functions with callbacks
|
|
%ignore enumerate_selectors;
|
|
%ignore enumerate_segments_with_selector;
|
|
|
|
// Kernel-only
|
|
%ignore init_groups;
|
|
%ignore save_groups;
|
|
%ignore term_groups;
|
|
%ignore vset_segm_name;
|
|
%ignore get_segm_expr;
|
|
%ignore get_based_segm_expr;
|
|
%ignore createSegmentation;
|
|
%ignore initSegment;
|
|
%ignore save_segments;
|
|
%ignore termSegment;
|
|
%ignore DeleteAllSegments;
|
|
%ignore delete_debug_segments;
|
|
%ignore is_debugger_segm;
|
|
%ignore is_ephemeral_segm;
|
|
%ignore correct_address;
|
|
|
|
%{
|
|
void segment_t_startEA_set(segment_t *segm, ea_t newea)
|
|
{
|
|
if ( getseg(segm->startEA) == segm )
|
|
{
|
|
PyErr_SetString(PyExc_AttributeError, "Can't modify startEA, please use set_segm_start() instead");
|
|
}
|
|
else
|
|
{
|
|
segm->startEA = newea;
|
|
}
|
|
}
|
|
ea_t segment_t_startEA_get(segment_t *segm)
|
|
{
|
|
return segm->startEA;
|
|
}
|
|
void segment_t_endEA_set(segment_t *segm, ea_t newea)
|
|
{
|
|
if ( getseg(segm->startEA) == segm )
|
|
{
|
|
PyErr_SetString(PyExc_AttributeError, "Can't modify endEA, please use set_segm_end() instead");
|
|
}
|
|
else
|
|
{
|
|
segm->endEA = newea;
|
|
}
|
|
}
|
|
ea_t segment_t_endEA_get(segment_t *segm)
|
|
{
|
|
return segm->endEA;
|
|
}
|
|
%}
|
|
%extend segment_t
|
|
{
|
|
ea_t startEA;
|
|
ea_t endEA;
|
|
}
|
|
%include "segment.hpp"
|
|
|
|
%inline %{
|
|
sel_t get_defsr(segment_t *s, int reg)
|
|
{
|
|
return s->defsr[reg];
|
|
}
|
|
void set_defsr(segment_t *s, int reg, sel_t value)
|
|
{
|
|
s->defsr[reg] = value;
|
|
}
|
|
%}
|