vds_xrefs

summary: show decompiler cross-references

description:

Show decompiler-style Xref when the Ctrl+X key is pressed in the Decompiler window.

  • supports any global name: functions, strings, integers, …

  • supports structure member.

author: EiNSTeiN_ (einstein@g3nius.org)

level: advanced

Attributes

XREF_EA

XREF_STRUC_MEMBER

adesc

Classes

XrefsForm

PluginForm class.

show_xrefs_ah_t

vds_xrefs_hooks_t

Module Contents

vds_xrefs.XREF_EA = 0
vds_xrefs.XREF_STRUC_MEMBER = 1
class vds_xrefs.XrefsForm(target)

Bases: ida_kernwin.PluginForm

PluginForm class.

This form can be used to host additional controls. Please check the PyQt example.

target
get_struc_name()
OnCreate(widget)

This event is called when the plugin form is created. The programmer should populate the form when this event is triggered.

Returns:

None

Show()

Creates the form if not was not created or brings to front if it was already created

Parameters:
populate_form()
double_clicked(row, column)
get_decompiled_line(cfunc, ea)
get_items_for_ea(ea)
get_items_for_type()
populate_table()
OnClose(widget)

Called when the plugin form is closed

Returns:

None

class vds_xrefs.show_xrefs_ah_t

Bases: ida_kernwin.action_handler_t

sel = None
activate(ctx)

Activate an action. This function implements the core behavior of an action. It is called when the action is triggered, from a menu, from a popup menu, from the toolbar, or programmatically.

Returns:

non-zero: all IDA windows will be refreshed

update(ctx)

Update an action. This is called when the context of the UI changed, and we need to let the action update some of its properties if needed (label, icon, …) In addition, this lets IDA know whether the action is enabled, and when it should be queried for availability again. Note: This callback is not meant to change anything in the application’s state, except by calling one (or many) of the “update_action_*()” functions on this very action.

class vds_xrefs.vds_xrefs_hooks_t(_flags: int = 0, _hkcb_flags: int = 1)

Bases: ida_hexrays.Hexrays_Hooks

populating_popup(widget, phandle, vu)

Populating popup menu. We can add menu items now.

Parameters:
  • widget – (TWidget *)

  • popup_handle – (TPopupMenu *)

  • vu – (vdui_t *)

vds_xrefs.adesc