Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Typedefs | |
typedef ut32 | ut27 |
Functions | |
RZ_API RzBitVector * | rz_reg_get_bv (RZ_NONNULL RzReg *reg, RZ_NONNULL RzRegItem *item) |
RZ_API bool | rz_reg_set_bv (RZ_NONNULL RzReg *reg, RZ_NONNULL RzRegItem *item, RZ_NONNULL const RzBitVector *bv) |
static ut27 | rz_read_me27 (const ut8 *buf, int boff) |
RZ_API ut64 | rz_reg_get_value_big (RzReg *reg, RzRegItem *item, utX *val) |
RZ_API ut64 | rz_reg_get_value (RzReg *reg, RzRegItem *item) |
RZ_API ut64 | rz_reg_get_value_by_role (RzReg *reg, RzRegisterId role) |
RZ_API bool | rz_reg_set_value (RzReg *reg, RzRegItem *item, ut64 value) |
RZ_API bool | rz_reg_set_value_by_role (RzReg *reg, RzRegisterId role, ut64 val) |
RZ_API ut64 | rz_reg_set_bvalue (RzReg *reg, RzRegItem *item, const char *str) |
RZ_API RZ_HEAP char * | rz_reg_get_bvalue (RzReg *reg, RzRegItem *item) |
RZ_API ut64 | rz_reg_get_pack (RzReg *reg, RzRegItem *item, int packidx, int packbits) |
RZ_API int | rz_reg_set_pack (RzReg *reg, RzRegItem *item, int packidx, int packbits, ut64 val) |
Definition at line 52 of file rvalue.c.
References rz_mem_copybits_delta().
Referenced by rz_reg_get_value().
RZ_API RzBitVector* rz_reg_get_bv | ( | RZ_NONNULL RzReg * | reg, |
RZ_NONNULL RzRegItem * | item | ||
) |
Read the value of the given register as a bit vector
Definition at line 11 of file rvalue.c.
References rz_reg_set_t::arena, rz_reg_arena_t::bytes, NULL, reg, rz_bv_new_from_bytes_be(), rz_bv_new_from_bytes_le(), and rz_return_val_if_fail.
Referenced by rz_il_vm_sync_from_reg().
Definition at line 291 of file rvalue.c.
References rz_reg_item_t::flags, malloc(), NULL, num, out, reg, rz_reg_get_value(), rz_str_bits(), and ut64().
Definition at line 308 of file rvalue.c.
References rz_reg_item_t::arena, rz_reg_set_t::arena, BITS2BYTES, rz_reg_arena_t::bytes, eprintf, i, off, rz_reg_item_t::offset, rz_reg_item_t::packed_size, reg, rz_return_val_if_fail, rz_reg_item_t::size, rz_reg_arena_t::size, and ut64().
Definition at line 114 of file rvalue.c.
References rz_reg_item_t::arena, rz_reg_set_t::arena, BITS2BYTES, rz_reg_arena_t::bytes, eprintf, off, rz_reg_item_t::offset, reg, rz_read_at_ble8(), rz_read_ble16(), rz_read_ble32(), rz_read_ble64(), rz_read_me27(), rz_reg_get_longdouble(), rz_return_val_if_fail, rz_reg_item_t::size, rz_reg_arena_t::size, and ut64().
Referenced by agraph_refresh(), backtrace_fuzzy(), backtrace_x86_32(), backtrace_x86_32_analysis(), backtrace_x86_64(), backtrace_x86_64_analysis(), cmd_print_format(), foreach_reg_set_or_clear(), format_reg_value(), i8051_reg_read(), internal_esil_reg_read(), num_callback(), references_handler(), reg_has_changed(), regs_to_flags(), rop_classify_arithmetic(), rop_classify_arithmetic_const(), rop_classify_constant(), rop_classify_mov(), rz_analysis_value_to_ut64(), rz_core_disasm_pde(), rz_core_reg_print_diff(), rz_core_rtr_gdb_cb(), rz_debug_add_checkpoint(), rz_debug_execute(), rz_debug_num_callback(), rz_debug_qnx_reg_write(), rz_debug_trace_ins_after(), rz_debug_trace_ins_before(), rz_debug_wait(), rz_il_vm_sync_from_reg(), rz_main_rizin(), rz_reg_cond_get_value(), rz_reg_flags_handler(), rz_reg_get_bvalue(), rz_reg_get_value_by_role(), rz_reg_getv(), rz_reg_getv_by_role_or_name(), rz_regs_show_valgroup(), and show_regs_handler().
Definition at line 60 of file rvalue.c.
References rz_reg_item_t::arena, rz_reg_set_t::arena, BITS2BYTES, rz_reg_arena_t::bytes, eprintf, off, rz_reg_item_t::offset, reg, rz_return_val_if_fail, rz_reg_item_t::size, rz_reg_arena_t::size, ut64(), and val.
Referenced by format_reg_value(), and rz_core_rtr_gdb_cb().
RZ_API ut64 rz_reg_get_value_by_role | ( | RzReg * | reg, |
RzRegisterId | role | ||
) |
Definition at line 181 of file rvalue.c.
References reg, rz_reg_get(), rz_reg_get_name(), and rz_reg_get_value().
Referenced by rz_core_arg_get(), rz_core_debug_print_status(), rz_core_il_step(), and rz_il_vm_step_until_addr_handler().
RZ_API bool rz_reg_set_bv | ( | RZ_NONNULL RzReg * | reg, |
RZ_NONNULL RzRegItem * | item, | ||
RZ_NONNULL const RzBitVector * | bv | ||
) |
Set the value of the given register from the given bit vector
bv | bitvector of exactly item->len bits |
Definition at line 26 of file rvalue.c.
References rz_reg_set_t::arena, rz_reg_arena_t::bytes, reg, rz_bv_len(), rz_bv_set_to_bytes_be(), rz_bv_set_to_bytes_le(), rz_bv_to_ut64(), RZ_LOG_ERROR, rz_reg_set_value(), and rz_return_val_if_fail.
Referenced by rz_il_vm_sync_to_reg().
Definition at line 279 of file rvalue.c.
References rz_reg_item_t::flags, NULL, num, reg, rz_num_math(), rz_reg_set_value(), rz_str_bits_from_string(), cmd_descs_generate::str, ut64(), and UT64_MAX.
Definition at line 346 of file rvalue.c.
References rz_reg_item_t::arena, BITS2BYTES, dst, eprintf, i, rz_reg_item_t::name, off, rz_reg_item_t::offset, rz_reg_item_t::packed_size, PFMT64x, reg, rz_return_val_if_fail, rz_reg_item_t::size, and val.
Definition at line 186 of file rvalue.c.
References rz_reg_item_t::arena, bit, BITS2BYTES, bytes, rz_reg_arena_t::bytes, eprintf, setup::idx, mask, rz_reg_item_t::name, rz_reg_item_t::offset, PFMT64x, reg, RZ_LOG_ERROR, rz_mem_copybits(), rz_reg_is_readonly(), rz_reg_set_longdouble(), rz_return_val_if_fail, rz_write_be16(), rz_write_be32(), rz_write_be64(), rz_write_ble8(), rz_write_le16(), rz_write_le32(), rz_write_le64(), rz_reg_item_t::size, rz_reg_arena_t::size, src, UT8_MAX, and value.
Referenced by _set_register(), esil_6502_init(), esil_gb_init(), fillRegisterValues(), i8051_reg_write(), internal_esil_reg_write(), internal_esil_reg_write_no_null(), pic_midrange_reg_write(), restore_register(), rop_classify_constant(), rop_classify_mov(), rz_analysis_value_set_ut64(), rz_core_analysis_set_reg(), rz_core_analysis_type_match(), rz_core_disasm_pde(), rz_core_link_stroff(), rz_core_reg_assign_sync(), rz_core_reg_set_by_role_or_name(), rz_debug_bp_hit(), rz_debug_execute(), rz_debug_reg_set(), rz_reg_cond_set(), rz_reg_set_bv(), rz_reg_set_bvalue(), rz_reg_set_value_by_role(), rz_reg_setv(), and set_retval().
RZ_API bool rz_reg_set_value_by_role | ( | RzReg * | reg, |
RzRegisterId | role, | ||
ut64 | val | ||
) |
Definition at line 269 of file rvalue.c.
References r, reg, rz_reg_get(), rz_reg_get_name(), rz_reg_set_value(), and val.
Referenced by __analysis_esil_function(), rz_core_analysis_esil_init_mem(), rz_core_analysis_esil_reinit(), and rz_core_analysis_il_reinit().