mirror of
https://github.com/cemu-project/idapython.git
synced 2024-11-28 03:54:18 +01:00
109158fabb
- Added AskUsingForm() with embedded forms support (check ex_askusingform.py example and formchooser.py in the SDK) - Added idautils.DecodePreviousInstruction() / DecodePrecedingInstruction() - Added idc.BeginTypeUpdating() / EndTypeUpdating() for fast batch type update operations - Added more IDP callbacks - Added UI_Hooks with a few notification events - Added idaapi.process_ui_action() / idc.ProcessUiAction() - Added netnode.index() to get netnode number - Better handling of ea_t values with bitwise negation - Execute statement hotkey (Ctrl-F3), script timeout, and other options are now configurable with Python.cfg - bugfix: idaapi.msg() / error() and warning() so they don't accept vararg - bugfix: processor_t.id constants were incorrect - bugfix: get_debug_names() was broken with IDA64 - Various bugfixes
82 lines
1.9 KiB
OpenEdge ABL
82 lines
1.9 KiB
OpenEdge ABL
%cstring_bounded_output_none(char *buf, MAXSTR);
|
|
%cstring_bounded_output_none(char *optlibs, MAXSTR);
|
|
|
|
// FIXME: Are these really useful?
|
|
%ignore iterate_func_chunks;
|
|
%ignore get_idasgn_desc;
|
|
%ignore get_idasgn_header_by_short_name;
|
|
|
|
// Kernel-only & unexported symbols
|
|
%ignore del_regargs;
|
|
%ignore write_regargs;
|
|
%ignore find_regarg;
|
|
%ignore free_regarg;
|
|
%ignore determine_rtl;
|
|
%ignore init_signatures;
|
|
%ignore save_signatures;
|
|
%ignore term_signatures;
|
|
%ignore init_funcs;
|
|
%ignore save_funcs;
|
|
%ignore term_funcs;
|
|
%ignore move_funcs;
|
|
%ignore copy_noret_info;
|
|
%ignore recalc_func_noret_flag;
|
|
%ignore plan_for_noret_analysis;
|
|
%ignore invalidate_sp_analysis;
|
|
|
|
%ignore create_func_eas_array;
|
|
%ignore auto_add_func_tails;
|
|
%ignore read_tails;
|
|
%rename (get_idasgn_desc) py_get_idasgn_desc;
|
|
|
|
%include "funcs.hpp"
|
|
|
|
%clear(char *buf);
|
|
%clear(char *optlibs);
|
|
|
|
%inline %{
|
|
//-----------------------------------------------------------------------
|
|
/*
|
|
#<pydoc>
|
|
def get_fchunk_referer(ea, idx):
|
|
pass
|
|
#</pydoc>
|
|
*/
|
|
static ea_t get_fchunk_referer(ea_t ea, size_t idx)
|
|
{
|
|
func_t *pfn = get_fchunk(ea);
|
|
func_parent_iterator_t dummy(pfn); // read referer info
|
|
if (idx >= pfn->refqty || pfn->referers == NULL)
|
|
return BADADDR;
|
|
else
|
|
return pfn->referers[idx];
|
|
}
|
|
|
|
//-----------------------------------------------------------------------
|
|
/*
|
|
#<pydoc>
|
|
def get_idasgn_desc(n):
|
|
"""
|
|
Get information about a signature in the list.
|
|
It returns both:
|
|
signame - the name of the signature
|
|
optlibs - the names of the optional libraries
|
|
|
|
@param n: number of signature in the list (0..get_idasgn_qty()-1)
|
|
@return: None on failure or tuple(signame, optlibs)
|
|
"""
|
|
#</pydoc>
|
|
*/
|
|
static PyObject *ida_export py_get_idasgn_desc(int n)
|
|
{
|
|
char signame[MAXSTR];
|
|
char optlibs[MAXSTR];
|
|
|
|
if ( get_idasgn_desc(n, signame, sizeof(signame), optlibs, sizeof(optlibs)) == -1 )
|
|
Py_RETURN_NONE;
|
|
else
|
|
return Py_BuildValue("(ss)", signame, optlibs);
|
|
}
|
|
|
|
%}
|