Module ida_problems
[frames] | no frames]

Module ida_problems

IDA Plugin SDK API wrapper: problems

Functions
bool
forget_problem(type, ea)
Remove an address from a problem list
ea_t
get_problem(type, lowea)
Get an address from the specified problem list.
str
get_problem_desc(t, ea)
Get the human-friendly description of the problem, if one was provided to remember_problem.
char const *
get_problem_name(type, longname=True)
Get problem list description.
bool
is_problem_present(t, ea)
Check if the specified address is present in the problem list.
 
remember_problem(type, ea, msg=None)
Insert an address to a list of problems.
bool
was_ida_decision(ea)
Variables
  PR_ATTN = 12
  PR_BADSTACK = 11
  PR_COLLISION = 15
  PR_DECIMP = 16
  PR_DISASM = 7
  PR_END = 17
  PR_FINAL = 13
  PR_HEAD = 8
  PR_ILLADDR = 9
  PR_JUMP = 6
  PR_MANYLINES = 10
  PR_NOBASE = 1
  PR_NOCMT = 4
  PR_NOFOP = 3
  PR_NONAME = 2
  PR_NOXREFS = 5
  PR_ROLLED = 14
  SWIG_PYTHON_LEGACY_BOOL = 1
  __package__ = None
  cvar = ??
Function Details

forget_problem(type, ea)

 

Remove an address from a problem list

Parameters:
  • type - problem list type (C++: problist_id_t)
  • ea - linear address (C++: ea_t)
Returns: bool
success

get_problem(type, lowea)

 

Get an address from the specified problem list. The address is not removed from the list.

Parameters:
  • type - problem list type (C++: problist_id_t)
  • lowea - the returned address will be higher or equal than the specified address (C++: ea_t)
Returns: ea_t
linear address or BADADDR

get_problem_desc(t, ea)

 

Get the human-friendly description of the problem, if one was provided to remember_problem.

Parameters:
  • t - problem list type. (C++: problist_id_t)
  • ea - linear address. (C++: ea_t)
Returns: str
the message length or -1 if none

get_problem_name(type, longname=True)

 

Get problem list description.

Parameters:
  • type, (C++ - problist_id_t)
  • longname, (C++ - bool)
Returns: char const *

is_problem_present(t, ea)

 

Check if the specified address is present in the problem list.

Parameters:
  • t, (C++ - problist_id_t)
  • ea, (C++ - ea_t)
Returns: bool

remember_problem(type, ea, msg=None)

 

Insert an address to a list of problems. Display a message saying about the problem (except of 'PR_ATTN' , 'PR_FINAL' ) 'PR_JUMP' is temporarily ignored.

Parameters:
  • type - problem list type (C++: problist_id_t)
  • ea - linear address (C++: ea_t)
  • msg - a user-friendly message to be displayed instead of the default more generic one associated with the type of problem. Defaults to NULL. (C++: const char *)