dump_extra_comments

summary: retrieve comments surrounding instructions

description:

Use the ida_lines.get_extra_cmt API to retrieve anterior and posterior extra comments.

This script registers two actions, that can be used to dump the previous and next extra comments.

level: intermediate

Attributes

widget_title

ida_view

action_variants

actname

Classes

dump_at_point_handler_t

action_previous_handler_t

action_next_handler_t

Module Contents

class dump_extra_comments.dump_at_point_handler_t(anchor)

Bases: ida_kernwin.action_handler_t

anchor
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.

static compose_action_name(v)
class dump_extra_comments.action_previous_handler_t

Bases: dump_at_point_handler_t

ACTION_LABEL = 'previous'
ACTION_SHORTCUT = 'Ctrl+Shift+Y'
class dump_extra_comments.action_next_handler_t

Bases: dump_at_point_handler_t

ACTION_LABEL = 'next'
ACTION_SHORTCUT = 'Ctrl+Shift+Z'
dump_extra_comments.widget_title = 'IDA View-A'
dump_extra_comments.ida_view
dump_extra_comments.action_variants
dump_extra_comments.actname = 'dump_extra_comments:previous'