Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Functions | |
RZ_API ut8 * | rz_reg_get_bytes (RzReg *reg, int type, int *size) |
RZ_API bool | rz_reg_read_regs (RzReg *reg, ut8 *buf, const int len) |
RZ_API bool | rz_reg_set_bytes (RzReg *reg, int type, const ut8 *buf, const int len) |
RZ_API int | rz_reg_fit_arena (RzReg *reg) |
RZ_API RzRegArena * | rz_reg_arena_new (size_t size) |
RZ_API void | rz_reg_arena_free (RzRegArena *ra) |
RZ_API void | rz_reg_arena_swap (RzReg *reg, int copy) |
RZ_API void | rz_reg_arena_pop (RzReg *reg) |
RZ_API int | rz_reg_arena_push (RzReg *reg) |
RZ_API void | rz_reg_arena_zero (RzReg *reg, RzRegisterType type) |
RZ_API ut8 * | rz_reg_arena_peek (RzReg *reg) |
RZ_API void | rz_reg_arena_poke (RzReg *reg, const ut8 *ret) |
RZ_API ut8 * | rz_reg_arena_dup (RzReg *reg, const ut8 *source) |
RZ_API int | rz_reg_arena_set_bytes (RzReg *reg, const char *str) |
RZ_API void | rz_reg_arena_shrink (RzReg *reg) |
Definition at line 301 of file arena.c.
References rz_reg_set_t::arena, malloc(), memcpy(), NULL, reg, rz_reg_regset_get(), RZ_REG_TYPE_GPR, rz_reg_arena_t::size, and source.
Referenced by get_bb_body(), and pr_bb().
RZ_API void rz_reg_arena_free | ( | RzRegArena * | ra | ) |
Definition at line 189 of file arena.c.
References rz_reg_arena_t::bytes, and free().
Referenced by rz_analysis_esil_trace_free(), rz_analysis_rzil_trace_free(), rz_debug_checkpoint_fini(), rz_reg_arena_pop(), rz_reg_free_internal(), rz_reg_new(), and rz_reg_read_regs().
RZ_API RzRegArena* rz_reg_arena_new | ( | size_t | size | ) |
Definition at line 170 of file arena.c.
References rz_reg_set_t::arena, rz_reg_arena_t::bytes, calloc(), NULL, RZ_FREE, RZ_LOG_ERROR, RZ_NEW0, and rz_reg_arena_t::size.
Referenced by deserialize_checkpoints_cb(), rz_analysis_esil_trace_new(), rz_analysis_rzil_trace_new(), rz_debug_add_checkpoint(), rz_reg_arena_push(), and rz_reg_new().
Definition at line 280 of file arena.c.
References rz_reg_set_t::arena, rz_reg_arena_t::bytes, malloc(), memcpy(), NULL, reg, rz_reg_regset_get(), RZ_REG_TYPE_GPR, and rz_reg_arena_t::size.
Referenced by backtrace_windows(), core_walk_function_blocks(), ds_print_esil_analysis_fini(), ds_print_esil_analysis_init(), func_walk_blocks(), get_bbnodes(), get_bbupdate(), and rz_core_analysis_types_propagation().
Definition at line 293 of file arena.c.
References rz_reg_set_t::arena, rz_reg_arena_t::bytes, memcpy(), reg, rz_reg_regset_get(), RZ_REG_TYPE_GPR, and rz_reg_arena_t::size.
Referenced by core_walk_function_blocks(), ds_print_esil_analysis_fini(), func_walk_blocks(), get_bb_body(), get_bbnodes(), get_bbupdate(), pr_bb(), and rz_core_analysis_types_propagation().
Definition at line 216 of file arena.c.
References a, i, reg, rz_list_length(), rz_list_pop(), rz_reg_arena_free(), and RZ_REG_TYPE_LAST.
Referenced by cmd_aea(), fillRegisterValues(), get_next_i(), rz_cmd_debug(), rz_core_analysis_esil(), rz_core_analysis_types_propagation(), rz_core_disasm_pde(), rz_core_link_stroff(), rz_core_print_disasm(), rz_core_print_disasm_instructions_with_buf(), rz_reg_arenas_pop_handler(), and rz_reg_set_profile_string().
Definition at line 236 of file arena.c.
References a, b, i, memcpy(), reg, rz_list_length(), rz_list_push(), rz_reg_arena_new(), and RZ_REG_TYPE_LAST.
Referenced by cmd_aea(), fillRegisterValues(), get_next_i(), rz_cmd_debug(), rz_core_analysis_esil(), rz_core_analysis_types_propagation(), rz_core_disasm_pde(), rz_core_link_stroff(), rz_core_print_disasm(), rz_core_print_disasm_instructions_with_buf(), rz_reg_arenas_push_handler(), rz_reg_new(), and rz_reg_set_profile_string().
Definition at line 314 of file arena.c.
References bl(), eprintf, free(), i, len, malloc(), n, reg, rz_hex_str2bin(), rz_hex_str_is_valid(), rz_reg_set_bytes(), RZ_REG_TYPE_LAST, rz_str_trim_head_ro(), and cmd_descs_generate::str.
Referenced by rz_core_bin_load().
Definition at line 345 of file arena.c.
References a, calloc(), free(), i, reg, and RZ_REG_TYPE_LAST.
Referenced by rz_reg_set_profile_string().
Definition at line 196 of file arena.c.
References rz_list_iter_t::data, i, reg, rz_list_length(), RZ_REG_TYPE_LAST, and autogen_x86imm::tmp.
Referenced by cmd_debug_backtrace(), cmd_debug_cont_syscall(), debug_trace_calls(), reg_has_changed(), rop_classify_arithmetic(), rop_classify_arithmetic_const(), rop_classify_constant(), rop_classify_mov(), rz_cmd_debug_continue_call_handler(), rz_cmd_debug_continue_exception_handler(), rz_cmd_debug_continue_ret_handler(), rz_cmd_debug_continue_send_signal_handler(), rz_cmd_debug_step_line_handler(), rz_cmd_debug_step_prog_handler(), rz_cmd_debug_step_until_handler(), rz_core_debug_continue(), rz_core_debug_continue_until(), rz_core_debug_single_step_over(), rz_core_debug_step_one(), rz_core_debug_step_over(), rz_core_debug_step_skip(), rz_core_reg_print_diff(), rz_debug_select(), rz_reg_arenas_swap_handler(), and rz_regs_prev_handler().
RZ_API void rz_reg_arena_zero | ( | RzReg * | reg, |
RzRegisterType | type | ||
) |
Definition at line 261 of file arena.c.
References a, i, memset(), reg, RZ_REG_TYPE_ANY, RZ_REG_TYPE_LAST, rz_return_if_fail, and type.
Referenced by rz_core_analysis_types_propagation(), rz_core_link_stroff(), and rz_reg_arenas_zero_handler().
Definition at line 135 of file arena.c.
References rz_reg_set_t::arena, BITS2BYTES, rz_reg_arena_t::bytes, i, memset(), NULL, r, realloc(), reg, RZ_FREE, RZ_MAX, RZ_REG_TYPE_LAST, and rz_reg_arena_t::size.
Referenced by rz_reg_set_profile_string().
Definition at line 8 of file arena.c.
References rz_reg_arena_t::bytes, i, malloc(), memcpy(), NULL, realloc(), reg, RZ_REG_TYPE_LAST, rz_reg_arena_t::size, and type.
Referenced by __reg_read(), backtrace_windows_x64(), rz_debug_execute(), rz_debug_gdb_reg_read(), rz_debug_gdb_reg_write(), rz_debug_qnx_reg_read(), rz_debug_qnx_reg_write(), rz_debug_reg_sync(), and rz_reg_arenas_hexdump_handler().
Definition at line 58 of file arena.c.
References rz_reg_arena_t::bytes, calloc(), i, len, memcpy(), memset(), off, reg, RZ_MIN, RZ_NEW0, rz_reg_arena_free(), RZ_REG_TYPE_LAST, and rz_reg_arena_t::size.
Referenced by rz_debug_execute().
Definition at line 92 of file arena.c.
References rz_reg_set_t::arena, rz_reg_arena_t::bytes, calloc(), eprintf, free(), len, memcpy(), memset(), realloc(), reg, RZ_MAX, RZ_MIN, RZ_REG_TYPE_LAST, rz_reg_arena_t::size, autogen_x86imm::tmp, and type.
Referenced by rz_debug_reg_sync(), and rz_reg_arena_set_bytes().