Skip to content

Heads

heads

Classes:

  • Heads

    Provides access to heads(instructions or data items) in the IDA database.

Heads

Heads(database: 'Database')

Provides access to heads(instructions or data items) in the IDA database.

Constructs a heads handler for the given database.

Args: database: Reference to the active IDA database.

Methods:

  • get_all

    Retrieves an iterator over all heads in the database.

  • get_between

    Retrieves all basic heads between two addresses.

  • get_next

    Retrieves the next head.

  • get_prev

    Retrieves the prev head.

Attributes:

m_database instance-attribute

m_database = database

get_all

get_all()

Retrieves an iterator over all heads in the database.

Returns: An iterator over the heads.

get_between

get_between(start: ea_t, end: ea_t)

Retrieves all basic heads between two addresses.

Args: start_ea: Start address of the range. end_ea: End address of the range.

Returns: An iterator over the heads.

get_next

get_next(ea: ea_t) -> ea_t | None

Retrieves the next head.

Args: ea: Current head address.

Returns: Next head, on error returns None.

get_prev

get_prev(ea: ea_t) -> ea_t | None

Retrieves the prev head.

Args: ea: Current head address.

Returns: Prev head, on error returns None.