Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_core.h>
Go to the source code of this file.
Functions | |
static const char * | syscallNumber (int n) |
RZ_API RZ_OWN char * | rz_core_syscall_as_string (RzCore *core, st64 n, ut64 addr) |
Returns the syscall representation as a string. More... | |
Returns the syscall representation as a string.
Given the syscall number and address it resolves the syscall for the selected asm.arch
and asm.os
values and print its arguments.
The number of the syscall can also be -1 to try to read the value of the syscall from the register that is the syscall number by the selected calling convention.
core | RzCore instance |
n | number of the syscall |
addr | address of the syscall |
Definition at line 26 of file csyscall.c.
References a0, rz_core_t::analysis, rz_syscall_item_t::args, rz_asm_t::bits, rz_asm_t::cur, i, int, rz_core_t::io, len, memset(), N, n, rz_syscall_item_t::name, NULL, rz_syscall_item_t::num, PFMT64u, PFMT64x, rz_core_t::rasm, rz_analysis_t::reg, rz_analysis_syscc_default(), rz_core_arg_get(), rz_core_reg_getv_by_role_or_name(), rz_io_read_at(), RZ_MIN, rz_reg_get_name(), RZ_REG_NAME_SN, rz_str_appendf(), rz_str_filter(), rz_str_newf(), rz_syscall_get(), rz_syscall_get_swi(), rz_syscall_item_free(), rz_syscall_item_t::sargs, st64, cmd_descs_generate::str, rz_analysis_t::syscall, syscallNumber(), and ut64().
Referenced by ds_print_esil_analysis(), and rz_analysis_syscall_show_handler().