func_ti_changed_listener

summary: print notifications about function prototype changes

description:

The goal of this script is to demonstrate some usage of the type API. In this script, we will create an IDB hook that intercepts ti_changed IDB events, and if it is a function prototype that changed, print it.

level: intermediate

Attributes

idbhook

Classes

ti_changed_t

Module Contents

class func_ti_changed_listener.ti_changed_t(_flags: int = 0, _hkcb_flags: int = 1)

Bases: ida_idp.IDB_Hooks

print_details(tif, ea)
ti_changed(ea, types, fields)

An item typestring (c/c++ prototype) has been changed.

Parameters:
  • ea – (::ea_t)

  • type – (const type_t *)

  • fnames – (const p_list *)

func_ti_changed_listener.idbhook