Skip to main content
Glama

get_callers

Retrieve all callers of a specified function address in IDA Pro for reverse engineering analysis. Input the function address to identify calling relationships efficiently.

Instructions

Get all callers of the given address

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
function_addressYesAddress of the function to get callers

Implementation Reference

  • The get_callers function implements the core logic to retrieve functions that call a given address using IDA Pro's CodeRefsTo API, filtering for actual call instructions and deduplicating by function.
    def get_callers(addr: str) -> list[Function]: """Get callers for a single function address""" try: callers = {} for caller_addr in idautils.CodeRefsTo(parse_address(addr), 0): func = get_function(caller_addr, raise_error=False) if not func: continue insn = idaapi.insn_t() idaapi.decode_insn(insn, caller_addr) if insn.itype not in [ idaapi.NN_call, idaapi.NN_callfi, idaapi.NN_callni, ]: continue callers[func["addr"]] = func return list(callers.values()) except Exception: return []
  • Import of the get_callers helper function from utils.py.
    get_callers,
  • Usage of get_callers within the analyze_funcs tool.
    callers=get_callers(addr),

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mrexodia/ida-pro-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server