Skip to content

Arguments

Allows describing functions, specifically enumerating arguments which may be passed in a combination of registers and stack values.

argname(n, abi=None)

argument(n, abi=None)

Returns the nth argument, as if $pc were a 'call' or 'bl' type instruction. Works only for ABIs that use registers for arguments.

arguments(abi=None)

Yields (arg_name, arg_value) tuples for arguments from a given ABI. Works only for ABIs that use registers for arguments.

format_args(instruction)

get(instruction)

Returns an array containing the arguments to the current function, if $pc is a 'call', 'bl', or 'jalr' type instruction.

Otherwise, returns None.