/dports/devel/radare2/radare2-5.1.1/libr/anal/ |
H A D | anal.c | 29 R_API void r_anal_unset_limits(RAnal *anal) { in r_anal_unset_limits() 35 RAnal *anal = container_of (s, RAnal, meta_spaces); in meta_unset_for() local 42 RAnal *anal = container_of (s, RAnal, meta_spaces); in meta_count_for() local 49 RAnal *anal = container_of (s, RAnal, zign_spaces); in zign_unset_for() local 100 RAnal *anal = R_NEW0 (RAnal); in r_anal_new() local 407 R_API RList* r_anal_get_fcns (RAnal *anal) { in r_anal_get_fcns() 448 R_API void r_anal_purge(RAnal *anal) { in r_anal_purge() 479 RAnal *anal = (RAnal *)p; in __nonreturn_print_commands() local 493 RAnal *anal = (RAnal *)p; in __nonreturn_print() local 707 R_API RList *r_anal_preludes(RAnal *anal) { in r_anal_preludes() [all …]
|
H A D | cc.c | 8 R_API void r_anal_cc_del(RAnal *anal, const char *name) { in r_anal_cc_del() 23 R_API bool r_anal_cc_set(RAnal *anal, const char *expr) { in r_anal_cc_set() 73 R_API bool r_anal_cc_once(RAnal *anal) { in r_anal_cc_once() 77 R_API void r_anal_cc_get_json(RAnal *anal, PJ *pj, const char *name) { in r_anal_cc_get_json() 112 R_API char *r_anal_cc_get(RAnal *anal, const char *name) { in r_anal_cc_get() 153 R_API bool r_anal_cc_exist(RAnal *anal, const char *convention) { in r_anal_cc_exist() 209 R_API int r_anal_cc_max_arg(RAnal *anal, const char *cc) { in r_anal_cc_max_arg() 238 R_API const char *r_anal_cc_default(RAnal *anal) { in r_anal_cc_default() 243 R_API void r_anal_set_cc_default(RAnal *anal, const char *cc) { in r_anal_set_cc_default() 248 R_API const char *r_anal_syscc_default(RAnal *anal) { in r_anal_syscc_default() [all …]
|
H A D | class.c | 55 R_API void r_anal_class_create(RAnal *anal, const char *name) { in r_anal_class_create() 72 R_API void r_anal_class_delete(RAnal *anal, const char *name) { in r_anal_class_delete() 118 static bool r_anal_class_exists_raw(RAnal *anal, const char *name) { in r_anal_class_exists_raw() 122 R_API bool r_anal_class_exists(RAnal *anal, const char *name) { in r_anal_class_exists() 132 R_API SdbList *r_anal_class_get_all(RAnal *anal, bool sorted) { in r_anal_class_get_all() 753 RAnal *anal; member 777 RAnal *anal; member 1093 RAnal *anal; member 1103 static void r_anal_class_list_json(RAnal *anal) { in r_anal_class_list_json() 1120 R_API void r_anal_class_list(RAnal *anal, int mode) { in r_anal_class_list() [all …]
|
H A D | diff.c | 28 R_API void r_anal_diff_setup(RAnal *anal, int doops, double thbb, double thfcn) { in r_anal_diff_setup() 37 R_API void r_anal_diff_setup_i(RAnal *anal, int doops, int thbb, int thfcn) { in r_anal_diff_setup_i() 46 R_API int r_anal_diff_fingerprint_bb(RAnal *anal, RAnalBlock *bb) { in r_anal_diff_fingerprint_bb() 88 R_API size_t r_anal_diff_fingerprint_fcn(RAnal *anal, RAnalFunction *fcn) { in r_anal_diff_fingerprint_fcn() 109 R_API bool r_anal_diff_bb(RAnal *anal, RAnalFunction *fcn, RAnalFunction *fcn2) { in r_anal_diff_bb() 173 R_API int r_anal_diff_fcn(RAnal *anal, RList *fcns, RList *fcns2) { in r_anal_diff_fcn() 291 R_API int r_anal_diff_eval(RAnal *anal) { in r_anal_diff_eval()
|
H A D | type.c | 31 R_API void r_anal_remove_parsed_type(RAnal *anal, const char *name) { in r_anal_remove_parsed_type() 56 R_API void r_anal_save_parsed_type(RAnal *anal, const char *parsed) { in r_anal_save_parsed_type() 86 R_API RList *r_anal_types_from_fcn(RAnal *anal, RAnalFunction *fcn) { in r_anal_types_from_fcn() 119 static RAnalBaseType *get_enum_type(RAnal *anal, const char *sname) { in get_enum_type() 169 static RAnalBaseType *get_struct_type(RAnal *anal, const char *sname) { in get_struct_type() 231 static RAnalBaseType *get_union_type(RAnal *anal, const char *sname) { in get_union_type() 282 static RAnalBaseType *get_typedef_type(RAnal *anal, const char *sname) { in get_typedef_type() 301 static RAnalBaseType *get_atomic_type(RAnal *anal, const char *sname) { in get_atomic_type() 358 static void save_struct(const RAnal *anal, const RAnalBaseType *type) { in save_struct() 407 static void save_union(const RAnal *anal, const RAnalBaseType *type) { in save_union() [all …]
|
H A D | rtti.c | 5 R_API char *r_anal_rtti_demangle_class_name(RAnal *anal, const char *name) { in r_anal_rtti_demangle_class_name() 14 R_API void r_anal_rtti_print_at_vtable(RAnal *anal, ut64 addr, int mode) { in r_anal_rtti_print_at_vtable() 33 R_API void r_anal_rtti_print_all(RAnal *anal, int mode) { in r_anal_rtti_print_all() 84 R_API void r_anal_rtti_recover_all(RAnal *anal) { in r_anal_rtti_recover_all()
|
H A D | xrefs.c | 121 R_API int r_anal_xrefs_set(RAnal *anal, ut64 from, ut64 to, const RAnalRefType type) { in r_anal_xrefs_set() 138 R_API int r_anal_xrefs_deln(RAnal *anal, ut64 from, ut64 to, const RAnalRefType type) { in r_anal_xrefs_deln() 147 R_API int r_anal_xref_del(RAnal *anal, ut64 from, ut64 to) { in r_anal_xref_del() 157 R_API int r_anal_xrefs_from(RAnal *anal, RList *list, const char *kind, const RAnalRefType type, ut… in r_anal_xrefs_from() 163 R_API RList *r_anal_xrefs_get(RAnal *anal, ut64 to) { in r_anal_xrefs_get() 177 R_API RList *r_anal_refs_get(RAnal *anal, ut64 from) { in r_anal_refs_get() 191 R_API RList *r_anal_xrefs_get_from(RAnal *anal, ut64 to) { in r_anal_xrefs_get_from() 205 R_API void r_anal_xrefs_list(RAnal *anal, int rad) { in r_anal_xrefs_list() 311 R_API bool r_anal_xrefs_init(RAnal *anal) { in r_anal_xrefs_init() 338 R_API ut64 r_anal_xrefs_count(RAnal *anal) { in r_anal_xrefs_count()
|
H A D | function.c | 20 R_API RList *r_anal_get_functions_in(RAnal *anal, ut64 addr) { in r_anal_get_functions_in() 29 static bool __fcn_exists(RAnal *anal, const char *name, ut64 addr) { in __fcn_exists() 70 R_API RAnalFunction *r_anal_function_new(RAnal *anal) { in r_anal_function_new() 106 RAnal *anal = fcn->anal; in r_anal_function_free() local 129 R_API bool r_anal_add_function(RAnal *anal, RAnalFunction *fcn) { in r_anal_add_function() 146 R_API RAnalFunction *r_anal_create_function(RAnal *anal, const char *name, ut64 addr, int type, RAn… in r_anal_create_function() 184 R_API RAnalFunction *r_anal_get_function_at(RAnal *anal, ut64 addr) { in r_anal_get_function_at() 241 RAnal *anal = fcn->anal; in r_anal_function_rename() local
|
H A D | jmptbl.c | 12 static void apply_case(RAnal *anal, RAnalBlock *block, ut64 switch_addr, ut64 offset_sz, ut64 case_… in apply_case() 27 static void apply_switch(RAnal *anal, ut64 switch_addr, ut64 jmptbl_addr, ut64 cases_count, ut64 de… in apply_switch() 43 R_API bool r_anal_jmptbl(RAnal *anal, RAnalFunction *fcn, RAnalBlock *block, ut64 jmpaddr, ut64 tab… in r_anal_jmptbl() 48 R_API bool try_walkthrough_casetbl(RAnal *anal, RAnalFunction *fcn, RAnalBlock *block, int depth, u… in try_walkthrough_casetbl() 136 R_API bool try_walkthrough_jmptbl(RAnal *anal, RAnalFunction *fcn, RAnalBlock *block, int depth, ut… in try_walkthrough_jmptbl() 216 R_API bool try_get_delta_jmptbl_info(RAnal *anal, RAnalFunction *fcn, ut64 jmp_addr, ut64 lea_addr,… in try_get_delta_jmptbl_info() 276 R_API int walkthrough_arm_jmptbl_style(RAnal *anal, RAnalFunction *fcn, RAnalBlock *block, int dept… in walkthrough_arm_jmptbl_style() 318 R_API bool try_get_jmptbl_info(RAnal *anal, RAnalFunction *fcn, ut64 addr, RAnalBlock *my_bb, ut64 … in try_get_jmptbl_info()
|
H A D | fcn.c | 57 static int read_ahead(RAnal *anal, ut64 addr, ut8 *buf, int len) { in read_ahead() 101 RAnal *anal = fcn->anal; in r_anal_function_resize() local 167 static bool isSymbolNextInstruction(RAnal *anal, RAnalOp *op) { in isSymbolNextInstruction() 467 static const char *retpoline_reg(RAnal *anal, ut64 addr) { in retpoline_reg() 494 static void analyze_retpoline(RAnal *anal, RAnalOp *op) { in analyze_retpoline() 1519 R_API int r_anal_fcn_del_locs(RAnal *anal, ut64 addr) { in r_anal_fcn_del_locs() 1681 RAnal *anal = fcn->anal; in r_anal_function_complexity() local 1905 RAnal *anal = fcn->anal; in r_anal_function_cost() local 1965 static bool can_affect_bp(RAnal *anal, RAnalOp* op) { in can_affect_bp() 2079 RAnal *anal = ctx->fcn->anal; in analize_addr_cb() local [all …]
|
/dports/devel/radare2/radare2-5.1.1/test/unit/ |
H A D | test_anal_cc.c | 29 RAnal *anal = r_anal_new (); in ref_anal() local 35 RAnal *anal = r_anal_new (); in ref_anal_self_err() local 43 RAnal *anal = ref_anal (); in test_r_anal_cc_set() local 54 RAnal *anal = ref_anal_self_err (); in test_r_anal_cc_set_self_err() local 65 RAnal *anal = ref_anal (); in test_r_anal_cc_get() local 78 RAnal *anal = ref_anal_self_err (); in test_r_anal_cc_get_self_err() local 91 RAnal *anal = ref_anal (); in test_r_anal_cc_del() local
|
H A D | test_anal_types.c | 61 RAnal *anal = r_anal_new (); in test_anal_get_base_type_struct() local 91 RAnal *anal = r_anal_new (); in test_anal_save_base_type_struct() local 123 RAnal *anal = r_anal_new (); in test_anal_get_base_type_union() local 151 RAnal *anal = r_anal_new (); in test_anal_save_base_type_union() local 183 RAnal *anal = r_anal_new (); in test_anal_get_base_type_enum() local 209 RAnal *anal = r_anal_new (); in test_anal_save_base_type_enum() local 239 RAnal *anal = r_anal_new (); in test_anal_get_base_type_typedef() local 258 RAnal *anal = r_anal_new (); in test_anal_save_base_type_typedef() local 279 RAnal *anal = r_anal_new (); in test_anal_get_base_type_atomic() local 299 RAnal *anal = r_anal_new (); in test_anal_save_base_type_atomic() local [all …]
|
H A D | test_anal_meta.c | 7 RAnal *anal = r_anal_new (); in test_meta_set() local 135 RAnal *anal = r_anal_new (); in test_meta_get_at() local 173 RAnal *anal = r_anal_new (); in test_meta_get_in() local 214 RAnal *anal = r_anal_new (); in test_meta_get_all_at() local 254 RAnal *anal = r_anal_new (); in test_meta_get_all_in() local 316 RAnal *anal = r_anal_new (); in test_meta_get_all_intersect() local 380 RAnal *anal = r_anal_new (); in test_meta_del() local 445 RAnal *anal = r_anal_new (); in test_meta_rebase() local 495 RAnal *anal = r_anal_new (); in test_meta_spaces() local
|
H A D | test_anal_block.c | 24 RAnal *anal = r_anal_new (); in test_r_anal_block_create() local 71 RAnal *anal = r_anal_new (); in test_r_anal_block_split() local 126 RAnal *anal = r_anal_new (); in test_r_anal_block_split_in_function() local 160 RAnal *anal = r_anal_new (); in test_r_anal_block_merge() local 208 RAnal *anal = r_anal_new (); in test_r_anal_block_merge_in_function() local 241 RAnal *anal = r_anal_new (); in test_r_anal_block_delete() local 269 RAnal *anal = r_anal_new (); in test_r_anal_block_set_size() local 308 RAnal *anal = r_anal_new (); in test_r_anal_block_relocate() local 373 RAnal *anal = r_anal_new (); in test_r_anal_block_query() local 490 RAnal *anal = r_anal_new (); in test_r_anal_block_successors() local [all …]
|
H A D | test_anal_function.c | 18 static bool function_check_invariants(RAnal *anal) { in function_check_invariants() 44 #define assert_invariants(anal) do { if (!check_invariants (anal)) { return false; } } while (0) argument 45 #define assert_leaks(anal) do { if (!check_leaks (anal)) { return false; } } while (0) argument 48 RAnal *anal = r_anal_new (); in test_r_anal_function_relocate() local 74 RAnal *anal = r_anal_new (); in test_r_anal_function_labels() local
|
/dports/devel/radare2/radare2-5.1.1/libr/anal/p/ |
H A D | anal_xtensa.c | 57 static void xtensa_null_op (RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *buf) { in xtensa_null_op() 61 static void xtensa_unk_op (RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *buf) { in xtensa_unk_op() 65 static void xtensa_mov_op (RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *buf) { in xtensa_mov_op() 69 static void xtensa_load_op (RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *buf) { in xtensa_load_op() 77 static void xtensa_add_op (RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *buf) { in xtensa_add_op() 81 static void xtensa_sub_op (RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *buf) { in xtensa_sub_op() 85 static void xtensa_mul_op (RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *buf) { in xtensa_mul_op() 89 static void xtensa_div_op (RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *buf) { in xtensa_div_op() 93 static void xtensa_mod_op (RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *buf) { in xtensa_mod_op() 101 static void xtensa_or_op (RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *buf) { in xtensa_or_op() [all …]
|
H A D | anal_mcore.c | 8 static int mcore_anal(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *buf, int len, RAnalOpMask mas… in mcore_anal() 46 static bool set_reg_profile(RAnal *anal) { in set_reg_profile() 112 static int archinfo(RAnal *anal, int q) { in archinfo()
|
H A D | anal_ppc_gnu.c | 10 static int ppc_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *bytes, int len, RAnalOpMask mask)… in ppc_op() 81 static bool set_reg_profile(RAnal *anal) { in set_reg_profile() 139 static int archinfo(RAnal *anal, int q) { in archinfo()
|
H A D | anal_sh.c | 208 static RAnalValue *anal_fill_ai_rg(RAnal *anal, int idx) { in anal_fill_ai_rg() 214 static RAnalValue *anal_fill_im(RAnal *anal, st32 v) { in anal_fill_im() 415 static int movl_reg_rdisp(RAnal* anal, RAnalOp* op, ut16 code) { in movl_reg_rdisp() 773 static int movl_rdisp_reg(RAnal* anal, RAnalOp* op, ut16 code) { in movl_rdisp_reg() 867 static int add_imm(RAnal* anal, RAnalOp* op, ut16 code) { in add_imm() 935 static int bra(RAnal* anal, RAnalOp* op, ut16 code) { in bra() 946 static int bsr(RAnal* anal, RAnalOp* op, ut16 code) { in bsr() 1052 static int mov_imm_reg(RAnal* anal, RAnalOp* op, ut16 code) { in mov_imm_reg() 1061 static int fpu_insn(RAnal* anal, RAnalOp* op, ut16 code) { in fpu_insn() 1110 static bool sh_set_reg_profile(RAnal* anal) { in sh_set_reg_profile() [all …]
|
H A D | anal_z80.c | 58 static int z80_anal_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int len, RAnalOpMask m… in z80_anal_op() 371 static bool set_reg_profile(RAnal *anal) { in set_reg_profile() 413 static int archinfo(RAnal *anal, int q) { in archinfo()
|
H A D | anal_rsp.c | 16 static int rsp_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *b, int len, RAnalOpMask mask) { in rsp_op() 581 static char *get_reg_profile(RAnal *anal) { in get_reg_profile() 685 static int archinfo(RAnal *anal, int q) { in archinfo()
|
H A D | anal_wasm.c | 20 static ut64 get_cf_offset(RAnal *anal, const ut8 *data, int len) { in get_cf_offset() 28 static bool advance_till_scope_end(RAnal* anal, RAnalOp *op, ut64 address, ut32 expected_type, ut32… in advance_till_scope_end() 64 static int wasm_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int len, RAnalOpMask mask)… in wasm_op() 435 static char *get_reg_profile(RAnal *anal) { in get_reg_profile()
|
H A D | anal_java.c | 27 static RBinJavaObj * get_java_bin_obj(RAnal *anal) { in get_java_bin_obj() 38 static int java_switch_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int len) { in java_switch_op() 197 static int java_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int len, RAnalOpMask mask)… in java_op() 284 static void java_update_anal_types (RAnal *anal, RBinJavaObj *bin_obj) { in java_update_anal_types() 302 static int java_cmd_ext(RAnal *anal, const char* input) { in java_cmd_ext()
|
H A D | anal_arm_gnu.c | 35 static int op_thumb(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int len) { in op_thumb() 168 static int arm_op32(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int len) { in arm_op32() 355 static int arm_op64(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *d, int len) { in arm_op64() 404 static int arm_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int len, RAnalOpMask mask) { in arm_op() 411 static bool set_reg_profile(RAnal *anal) { in set_reg_profile() 446 static int archinfo(RAnal *anal, int q) { in archinfo()
|
H A D | anal_null.c | 7 static int null_anal(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int len, RAnalOpMask mas… in null_anal() 12 static bool null_set_reg_profile(RAnal* anal){ in null_set_reg_profile()
|