Rizin
unix-like reverse engineering framework and cli tools
|
#include "rz_util/rz_str.h"
#include <rz_regex.h>
#include <stdio.h>
#include <rz_types.h>
#include <rz_parse.h>
#include <config.h>
Go to the source code of this file.
Macros | |
#define | isx86separator(x) |
Functions | |
static bool | isvalidflag (RzFlagItem *flag) |
static char * | findEnd (const char *s) |
static void | insert (char *dst, const char *src) |
static int | parse_number (const char *str) |
static void | replaceWords (char *s, const char *k, const char *v) |
static char * | findNextNumber (char *op) |
static void | __replaceRegisters (RzReg *reg, char *s, bool x86) |
static bool | is_lea (const char *asm_str) |
Checks if the given asm string is an x86 "lea" instruction. More... | |
static bool | filter (RzParse *p, ut64 addr, RzFlag *f, RzAnalysisHint *hint, char *data, char *str, int len, bool big_endian) |
RZ_API bool | rz_parse_filter (RzParse *p, ut64 addr, RzFlag *f, RzAnalysisHint *hint, char *data, char *str, int len, bool big_endian) |
filter the opcode in data into str by following the flags and hints information More... | |
RZ_API char * | rz_parse_filter_dup (RzParse *p, ut64 addr, const char *opstr) |
#define isx86separator | ( | x | ) |
Definition at line 147 of file filter.c.
References i, k, reg, replaceWords(), rz_reg_get_name(), rz_reg_get_role(), RZ_REG_NAME_PC, s, strdup(), and v.
Referenced by filter().
|
static |
Definition at line 185 of file filter.c.
References __replaceRegisters(), a, addr, rz_analysis_function_t::addr, Color_RESET, count, eprintf, f, findNextNumber(), free(), rz_analysis_hint_t::immbase, insert(), ip, IS_DIGIT, is_lea(), IS_PRINTABLE, IS_SEPARATOR, isvalidflag(), isx86separator, len, regress::m, memset(), mod(), rz_analysis_function_t::name, rz_flag_item_t::name, newstr(), NULL, num, rz_analysis_hint_t::nword, off, rz_analysis_hint_t::offset, p, parse_number(), PFMT32d, PFMT64d, PFMT64u, PFMT64x, rz_flag_item_t::realname, reg, regs, replaceWords(), rz_flag_get_i(), RZ_MAX, rz_mem_swapendian(), rz_num_math(), rz_num_tail_base(), rz_num_to_bits(), rz_reg_get_list(), RZ_REG_TYPE_GPR, rz_str_casestr(), rz_str_newf(), rz_str_rstr(), rz_syscall_get(), rz_syscall_item_free(), si, snprintf, rz_flag_item_t::space, src, st32, st64, cmd_descs_generate::str, strdup(), swap, autogen_x86imm::tmp, ut64(), and UT64_MAX.
Referenced by __matchString(), __renew_filter(), compute_symbols_from_segment(), get_gnu_debugdata_elf_symbols(), lzma_simple_coder_init(), rz_bin_trycatch_new(), rz_cmd_debug_dmi(), rz_main_rz_bin(), rz_parse_filter(), scandir(), sdb_foreach_list_filter_user(), and uv__io_poll().
|
static |
|
static |
|
static |
Checks if the given asm string is an x86 "lea" instruction.
asm_str | The asm string. |
Definition at line 176 of file filter.c.
References rz_regex_match(), RZ_REGEX_NOMATCH, rz_return_val_if_fail, and rz_str_startswith_icase().
Referenced by filter().
|
static |
Definition at line 46 of file filter.c.
References IS_DIGIT, IS_HEXCHAR, p, and cmd_descs_generate::str.
Referenced by filter().
RZ_API bool rz_parse_filter | ( | RzParse * | p, |
ut64 | addr, | ||
RzFlag * | f, | ||
RzAnalysisHint * | hint, | ||
char * | data, | ||
char * | str, | ||
int | len, | ||
bool | big_endian | ||
) |
filter the opcode in data into str by following the flags and hints information
Definition at line 592 of file filter.c.
References addr, f, filter(), len, p, and cmd_descs_generate::str.
Referenced by do_asm_search(), do_ref_search(), ds_build_op_str(), rz_analysis_xrefs_from_list_handler(), rz_core_analysis_bytes(), rz_core_disasm_instruction(), rz_core_disasm_pdi_with_buf(), rz_core_print_disasm_all(), and rz_parse_filter_dup().
Definition at line 601 of file filter.c.
References addr, calloc(), free(), in, NULL, opstr(), out, p, rz_parse_filter(), and strdup().