Rizin
unix-like reverse engineering framework and cli tools
|
#include <string.h>
#include <rz_types.h>
#include <rz_list.h>
#include <rz_core.h>
#include <rz_type.h>
#include "core_private.h"
Go to the source code of this file.
Classes | |
struct | TLAnalysisContext |
struct | coremodepj |
Definition at line 530 of file ctypes.c.
References rz_cons_println(), and s.
Referenced by rz_core_types_function_noreturn_print().
Definition at line 539 of file ctypes.c.
References pj_a(), pj_end(), pj_free(), pj_new(), pj_s(), pj_string(), rz_cons_println(), and s.
Referenced by rz_core_types_function_noreturn_print().
|
static |
Definition at line 681 of file ctypes.c.
References rz_core_t::analysis, rz_type_t::identifier, rz_type_t::kind, rz_analysis_type_paths_by_address(), rz_analysis_var_rename(), rz_analysis_var_set_type(), rz_list_get_top(), rz_list_length(), rz_type_db_get_base_type(), RZ_TYPE_KIND_IDENTIFIER, rz_warn_if_reached, set_offset_hint(), rz_type_path_t::typ, and rz_analysis_t::typedb.
Referenced by rz_core_link_stroff().
RZ_IPI RZ_OWN char* rz_core_base_type_as_c | ( | RzCore * | core, |
RZ_NONNULL RzBaseType * | type, | ||
bool | multiline | ||
) |
Definition at line 408 of file ctypes.c.
References rz_core_t::analysis, NULL, rz_return_val_if_fail, rz_type_db_base_type_as_pretty_string(), RZ_TYPE_PRINT_ANONYMOUS, RZ_TYPE_PRINT_END_NEWLINE, RZ_TYPE_PRINT_MULTILINE, type, and rz_analysis_t::typedb.
Referenced by rz_core_types_as_c(), and rz_types_open_editor().
RZ_API void rz_core_link_stroff | ( | RzCore * | core, |
RzAnalysisFunction * | fcn | ||
) |
Definition at line 717 of file ctypes.c.
References addr, rz_analysis_function_t::addr, rz_analysis_op_t::addr, rz_analysis_bb_t::addr, rz_analysis_esil_t::analysis, rz_core_t::analysis, TLAnalysisContext::aop, rz_analysis_value_t::base, bb_cmpaddr(), rz_analysis_function_t::bbs, rz_core_t::blocksize, rz_io_t::cached, rz_core_t::config, rz_core_t::dbg, rz_analysis_value_t::delta, rz_analysis_op_t::dst, TLAnalysisContext::dst_addr, TLAnalysisContext::dst_imm, free(), i, rz_analysis_value_t::imm, rz_core_t::io, malloc(), rz_analysis_value_t::mul, rz_reg_item_t::name, NULL, rz_core_t::offset, pc, rz_analysis_t::reg, rz_analysis_value_t::reg, rz_analysis_value_t::regdelta, resolve_type_links(), rz_analysis_archinfo(), RZ_ANALYSIS_ARCHINFO_MAX_OP_SIZE, RZ_ANALYSIS_ARCHINFO_MIN_OP_SIZE, rz_analysis_esil_free(), rz_analysis_esil_new(), rz_analysis_esil_setup(), rz_analysis_get_used_function_var(), rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_MASK_VAL, rz_analysis_op_nonlinear(), RZ_ANALYSIS_VAL_IMM, RZ_ANALYSIS_VAL_MEM, RZ_ANALYSIS_VAL_REG, rz_config_get_i(), rz_config_set_i(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_core_analysis_esil_init_mem(), rz_core_analysis_esil_init_mem_del(), rz_core_esil_step(), rz_core_get_stacksz(), rz_core_reg_update_flags(), rz_core_seek(), rz_debug_reg_sync(), rz_io_cache_reset(), rz_io_read_at(), rz_list_sort(), RZ_MAX, rz_reg_arena_pop(), rz_reg_arena_push(), rz_reg_arena_zero(), rz_reg_get(), rz_reg_get_name(), rz_reg_getv(), RZ_REG_NAME_PC, RZ_REG_NAME_SP, rz_reg_set_value(), RZ_REG_TYPE_ANY, rz_return_if_fail, set_retval(), rz_analysis_bb_t::size, sp, rz_analysis_op_t::src, TLAnalysisContext::src_addr, TLAnalysisContext::src_imm, to, rz_analysis_value_t::type, rz_analysis_op_t::type, UT32_MAX, ut64(), UT64_MAX, and TLAnalysisContext::var.
Referenced by rz_analyze_function_linked_offsets_handler(), and rz_core_types_link().
RZ_API RZ_OWN char* rz_core_types_as_c | ( | RZ_NONNULL RzCore * | core, |
RZ_NONNULL const char * | name, | ||
bool | multiline | ||
) |
Get a type string by name
(.
core | RzCore reference |
name | Type name |
multiline | Pretty printing with RZ_TYPE_PRINT_MULTILINE |
Definition at line 424 of file ctypes.c.
References NULL, rz_core_base_type_as_c(), rz_return_val_if_fail, and rz_type_db_get_base_type().
Referenced by rz_type_list_c_handler(), and rz_type_list_c_nl_handler().
RZ_API RZ_OWN char* rz_core_types_as_c_all | ( | RZ_NONNULL RzCore * | core, |
bool | multiline | ||
) |
Get all types with pretty printing.
core | RzCore reference |
multiline | Pretty printing with RZ_TYPE_PRINT_MULTILINE |
Definition at line 439 of file ctypes.c.
References free(), NULL, rz_core_types_enum_as_c_all(), rz_core_types_struct_as_c_all(), rz_core_types_typedef_as_c_all(), rz_core_types_union_as_c_all(), rz_return_val_if_fail, rz_strbuf_append(), rz_strbuf_drain(), rz_strbuf_new(), and cmd_descs_generate::str.
Referenced by type_list_c_all(), and type_list_c_all_nl().
RZ_IPI void rz_core_types_calling_conventions_print | ( | RzCore * | core, |
RzOutputMode | mode | ||
) |
Definition at line 19 of file ctypes.c.
References rz_core_t::analysis, free(), list(), pj_a(), pj_end(), pj_free(), pj_new(), pj_string(), rz_analysis_calling_conventions(), rz_analysis_cc_get(), rz_cons_printf(), rz_cons_println(), rz_core_analysis_cc_print(), rz_core_kuery_print(), rz_list_free(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_LONG, RZ_OUTPUT_MODE_RIZIN, RZ_OUTPUT_MODE_SDB, RZ_OUTPUT_MODE_STANDARD, and rz_warn_if_reached.
Referenced by cb_analysiscc(), cb_analysissyscc(), rz_analysis_function_cc_list_handler(), and rz_type_cc_list_handler().
RZ_IPI RZ_OWN char* rz_core_types_enum_as_c | ( | RzTypeDB * | typedb, |
const RzBaseType * | btype, | ||
bool | multiline | ||
) |
Definition at line 123 of file ctypes.c.
References rz_base_type_t::kind, NULL, RZ_BASE_TYPE_KIND_ENUM, rz_return_val_if_fail, rz_type_db_base_type_as_pretty_string(), RZ_TYPE_PRINT_ANONYMOUS, RZ_TYPE_PRINT_END_NEWLINE, and RZ_TYPE_PRINT_MULTILINE.
Referenced by rz_core_types_enum_as_c_all(), rz_type_enum_c_handler(), and rz_type_enum_c_nl_handler().
Definition at line 134 of file ctypes.c.
References free(), RZ_BASE_TYPE_KIND_ENUM, rz_core_types_enum_as_c(), rz_list_free(), rz_strbuf_append(), rz_strbuf_drain(), rz_strbuf_new(), rz_type_db_get_base_types_of_kind(), and cmd_descs_generate::str.
Referenced by rz_core_types_as_c_all(), rz_type_enum_c_handler(), and rz_type_enum_c_nl_handler().
RZ_IPI void rz_core_types_enum_print | ( | RzCore * | core, |
const RzBaseType * | btype, | ||
RzOutputMode | mode, | ||
PJ * | pj | ||
) |
Definition at line 65 of file ctypes.c.
References rz_base_type_enum_t::cases, rz_base_type_t::enum_data, rz_base_type_t::kind, rz_type_enum_case_t::name, rz_base_type_t::name, PFMT64x, pj_end(), pj_k(), pj_kn(), pj_ks(), pj_o(), RZ_BASE_TYPE_KIND_ENUM, rz_cons_printf(), rz_cons_println(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_STANDARD, rz_return_if_fail, rz_vector_empty(), rz_vector_foreach, rz_warn_if_reached, and rz_type_enum_case_t::val.
Referenced by rz_core_types_enum_print_all(), and rz_type_list_enum_handler().
RZ_IPI void rz_core_types_enum_print_all | ( | RzCore * | core, |
RzOutputMode | mode | ||
) |
Definition at line 104 of file ctypes.c.
References rz_core_t::analysis, NULL, pj_a(), pj_end(), pj_free(), pj_new(), pj_string(), RZ_BASE_TYPE_KIND_ENUM, rz_cons_println(), rz_core_types_enum_print(), rz_list_free(), RZ_OUTPUT_MODE_JSON, rz_type_db_get_base_types_of_kind(), and rz_analysis_t::typedb.
Referenced by rz_type_list_enum_handler().
RZ_IPI void rz_core_types_function_noreturn_print | ( | RzCore * | core, |
RzOutputMode | mode | ||
) |
Definition at line 553 of file ctypes.c.
References rz_core_t::analysis, nonreturn_print(), nonreturn_print_json(), rz_list_free(), RZ_OUTPUT_MODE_JSON, rz_type_noreturn_function_names(), and rz_analysis_t::typedb.
Referenced by rz_type_list_noreturn_handler().
RZ_IPI void rz_core_types_function_print | ( | RzTypeDB * | typedb, |
const char * | function, | ||
RzOutputMode | mode, | ||
PJ * | pj | ||
) |
Definition at line 472 of file ctypes.c.
References rz_callable_at::args, free(), arg::name, NULL, pj_a(), pj_end(), pj_k(), pj_ks(), pj_o(), rz_callable_at::ret, rz_cons_printf(), RZ_OUTPUT_MODE_JSON, rz_pvector_foreach, rz_return_if_fail, rz_str_get_null(), rz_type_as_string(), rz_type_callable_as_string(), rz_type_func_get(), and cmd_descs_generate::str.
Referenced by rz_core_types_function_print_all(), and rz_type_list_function_handler().
RZ_IPI void rz_core_types_function_print_all | ( | RzCore * | core, |
RzOutputMode | mode | ||
) |
Definition at line 509 of file ctypes.c.
References rz_core_t::analysis, name, NULL, pj_a(), pj_end(), pj_free(), pj_new(), pj_string(), rz_cons_println(), rz_core_types_function_print(), rz_list_free(), RZ_OUTPUT_MODE_JSON, rz_type_function_names(), and rz_analysis_t::typedb.
Referenced by rz_type_list_function_handler().
Link an address addr
to the type referenced by typestr
.
NOTE: This is likely going to be deprecated with the use of global variables.
core | RzCore reference |
typestr | Name of the type that should be defined at addr |
addr | Address where the type should be used |
Definition at line 954 of file ctypes.c.
References addr, rz_core_t::analysis, coremodepj::core, eprintf, free(), NULL, rz_core_t::offset, rz_type_db_t::parser, rz_analysis_get_functions_in(), rz_analysis_type_set_link(), rz_core_link_stroff(), rz_list_first(), rz_list_free(), rz_list_length(), rz_type_parse_string_single(), type, and rz_analysis_t::typedb.
Referenced by rz_type_link_handler().
RZ_IPI void rz_core_types_link_print | ( | RzCore * | core, |
RzType * | type, | ||
ut64 | addr, | ||
RzOutputMode | mode, | ||
PJ * | pj | ||
) |
Definition at line 879 of file ctypes.c.
References addr, rz_core_t::analysis, eprintf, free(), PFMT64x, pj_end(), pj_ks(), pj_o(), rz_cons_printf(), rz_core_cmdf(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_LONG, RZ_OUTPUT_MODE_RIZIN, RZ_OUTPUT_MODE_STANDARD, rz_return_if_fail, rz_str_newf(), rz_type_as_format(), rz_type_as_string(), rz_warn_if_reached, type, and rz_analysis_t::typedb.
Referenced by rz_core_types_link_show(), and typelink_print_cb().
RZ_IPI void rz_core_types_link_print_all | ( | RzCore * | core, |
RzOutputMode | mode | ||
) |
Definition at line 931 of file ctypes.c.
References rz_core_t::analysis, c, coremodepj::core, NULL, coremodepj::pj, pj_a(), pj_end(), pj_free(), pj_new(), pj_string(), rz_cons_println(), RZ_OUTPUT_MODE_JSON, rz_analysis_t::type_links, and typelink_print_cb().
Referenced by rz_type_link_handler().
Definition at line 975 of file ctypes.c.
References addr, rz_core_t::analysis, coremodepj::core, link, NULL, rz_analysis_type_link_at(), rz_core_types_link_print(), and RZ_OUTPUT_MODE_LONG.
Referenced by rz_type_link_show_handler().
RZ_IPI void rz_core_types_print_all | ( | RzCore * | core, |
RzOutputMode | mode | ||
) |
Definition at line 984 of file ctypes.c.
References rz_core_t::analysis, coremodepj::core, free(), rz_base_type_t::name, coremodepj::pj, pj_a(), pj_end(), pj_free(), pj_ki(), pj_ks(), pj_new(), pj_o(), pj_string(), rz_cons_printf(), rz_cons_println(), rz_list_free(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_RIZIN, RZ_OUTPUT_MODE_STANDARD, rz_type_db_get_base_types(), rz_type_format(), rz_warn_if_reached, rz_base_type_t::size, rz_analysis_t::typedb, and types.
Referenced by rz_type_handler().
RZ_IPI void rz_core_types_show_format | ( | RzCore * | core, |
const char * | name, | ||
RzOutputMode | mode | ||
) |
Definition at line 568 of file ctypes.c.
References rz_core_t::analysis, eprintf, free(), pj_end(), pj_free(), pj_ks(), pj_new(), pj_o(), pj_string(), rz_cons_printf(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_RIZIN, RZ_OUTPUT_MODE_STANDARD, rz_type_format(), and rz_analysis_t::typedb.
Referenced by rz_core_types_struct_print_format_all(), rz_core_types_union_print_format_all(), rz_type_handler(), rz_type_list_structure_handler(), and rz_type_list_union_handler().
RZ_IPI RZ_OWN char* rz_core_types_struct_as_c | ( | RzTypeDB * | typedb, |
const RzBaseType * | btype, | ||
bool | multiline | ||
) |
Definition at line 312 of file ctypes.c.
References rz_base_type_t::kind, NULL, RZ_BASE_TYPE_KIND_STRUCT, rz_return_val_if_fail, rz_type_db_base_type_as_pretty_string(), RZ_TYPE_PRINT_ANONYMOUS, RZ_TYPE_PRINT_END_NEWLINE, and RZ_TYPE_PRINT_MULTILINE.
Referenced by rz_core_types_struct_as_c_all(), rz_type_structure_c_handler(), and rz_type_structure_c_nl_handler().
Definition at line 320 of file ctypes.c.
References free(), RZ_BASE_TYPE_KIND_STRUCT, rz_core_types_struct_as_c(), rz_list_free(), rz_strbuf_append(), rz_strbuf_drain(), rz_strbuf_new(), rz_type_db_get_base_types_of_kind(), and cmd_descs_generate::str.
Referenced by rz_core_types_as_c_all(), rz_type_structure_c_handler(), and rz_type_structure_c_nl_handler().
RZ_IPI void rz_core_types_struct_print | ( | RzCore * | core, |
const RzBaseType * | btype, | ||
RzOutputMode | mode, | ||
PJ * | pj | ||
) |
Definition at line 246 of file ctypes.c.
References rz_core_t::analysis, free(), rz_base_type_t::kind, rz_base_type_struct_t::members, rz_base_type_union_t::members, rz_type_struct_member_t::name, rz_base_type_t::name, PFMT64d, pj_end(), pj_k(), pj_ks(), pj_o(), RZ_BASE_TYPE_KIND_STRUCT, rz_cons_printf(), rz_cons_println(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_LONG, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_STANDARD, rz_return_if_fail, rz_type_as_string(), rz_type_db_get_bitsize(), rz_vector_empty(), rz_vector_foreach, rz_warn_if_reached, rz_base_type_t::struct_data, rz_type_struct_member_t::type, rz_analysis_t::typedb, rz_base_type_t::union_data, and ut64().
Referenced by rz_core_types_struct_print_all(), and rz_type_list_structure_handler().
RZ_IPI void rz_core_types_struct_print_all | ( | RzCore * | core, |
RzOutputMode | mode | ||
) |
Definition at line 293 of file ctypes.c.
References rz_core_t::analysis, NULL, pj_a(), pj_end(), pj_free(), pj_new(), pj_string(), RZ_BASE_TYPE_KIND_STRUCT, rz_cons_println(), rz_core_types_struct_print(), rz_list_free(), RZ_OUTPUT_MODE_JSON, rz_type_db_get_base_types_of_kind(), and rz_analysis_t::typedb.
Referenced by rz_type_list_structure_handler().
Definition at line 602 of file ctypes.c.
References rz_core_t::analysis, rz_base_type_t::name, RZ_BASE_TYPE_KIND_STRUCT, rz_core_types_show_format(), rz_list_free(), RZ_OUTPUT_MODE_RIZIN, rz_type_db_get_base_types_of_kind(), and rz_analysis_t::typedb.
Referenced by rz_type_list_structure_handler().
RZ_IPI RZ_OWN char* rz_core_types_typedef_as_c | ( | RzTypeDB * | typedb, |
const RzBaseType * | btype | ||
) |
Definition at line 385 of file ctypes.c.
References rz_base_type_t::kind, NULL, RZ_BASE_TYPE_KIND_TYPEDEF, rz_return_val_if_fail, rz_type_db_base_type_as_pretty_string(), RZ_TYPE_PRINT_END_NEWLINE, and RZ_TYPE_PRINT_SHOW_TYPEDEF.
Referenced by rz_core_types_typedef_as_c_all(), and rz_type_typedef_c_handler().
Definition at line 392 of file ctypes.c.
References free(), RZ_BASE_TYPE_KIND_TYPEDEF, rz_core_types_typedef_as_c(), rz_list_free(), rz_strbuf_append(), rz_strbuf_drain(), rz_strbuf_new(), rz_type_db_get_base_types_of_kind(), and cmd_descs_generate::str.
Referenced by rz_core_types_as_c_all(), and rz_type_typedef_c_handler().
RZ_IPI void rz_core_types_typedef_print | ( | RzCore * | core, |
const RzBaseType * | btype, | ||
RzOutputMode | mode, | ||
PJ * | pj | ||
) |
Definition at line 338 of file ctypes.c.
References rz_core_t::analysis, free(), rz_base_type_t::kind, rz_base_type_t::name, pj_end(), pj_ks(), pj_o(), RZ_BASE_TYPE_KIND_TYPEDEF, rz_cons_printf(), rz_cons_println(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_STANDARD, rz_return_if_fail, rz_type_as_string(), rz_warn_if_reached, rz_base_type_t::type, and rz_analysis_t::typedb.
Referenced by rz_core_types_typedef_print_all(), and rz_type_list_typedef_handler().
RZ_IPI void rz_core_types_typedef_print_all | ( | RzCore * | core, |
RzOutputMode | mode | ||
) |
Definition at line 366 of file ctypes.c.
References rz_core_t::analysis, NULL, pj_a(), pj_end(), pj_free(), pj_new(), pj_string(), RZ_BASE_TYPE_KIND_TYPEDEF, rz_cons_println(), rz_core_types_typedef_print(), rz_list_free(), RZ_OUTPUT_MODE_JSON, rz_type_db_get_base_types_of_kind(), and rz_analysis_t::typedb.
Referenced by rz_type_list_typedef_handler().
RZ_IPI RZ_OWN char* rz_core_types_union_as_c | ( | RzTypeDB * | typedb, |
const RzBaseType * | btype, | ||
bool | multiline | ||
) |
Definition at line 217 of file ctypes.c.
References rz_base_type_t::kind, NULL, RZ_BASE_TYPE_KIND_UNION, rz_return_val_if_fail, rz_type_db_base_type_as_pretty_string(), RZ_TYPE_PRINT_ANONYMOUS, RZ_TYPE_PRINT_END_NEWLINE, and RZ_TYPE_PRINT_MULTILINE.
Referenced by rz_core_types_union_as_c_all(), rz_type_union_c_handler(), and rz_type_union_c_nl_handler().
Definition at line 228 of file ctypes.c.
References free(), RZ_BASE_TYPE_KIND_UNION, rz_core_types_union_as_c(), rz_list_free(), rz_strbuf_append(), rz_strbuf_drain(), rz_strbuf_new(), rz_type_db_get_base_types_of_kind(), and cmd_descs_generate::str.
Referenced by rz_core_types_as_c_all(), rz_type_union_c_handler(), and rz_type_union_c_nl_handler().
RZ_IPI void rz_core_types_union_print | ( | RzCore * | core, |
const RzBaseType * | btype, | ||
RzOutputMode | mode, | ||
PJ * | pj | ||
) |
Definition at line 152 of file ctypes.c.
References rz_core_t::analysis, free(), rz_base_type_t::kind, rz_base_type_union_t::members, rz_type_union_member_t::name, rz_base_type_t::name, PFMT64d, pj_end(), pj_k(), pj_ks(), pj_o(), RZ_BASE_TYPE_KIND_UNION, rz_cons_printf(), rz_cons_println(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_LONG, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_STANDARD, rz_return_if_fail, rz_type_as_string(), rz_type_db_get_bitsize(), rz_vector_empty(), rz_vector_foreach, rz_warn_if_reached, rz_type_union_member_t::type, rz_analysis_t::typedb, rz_base_type_t::union_data, and ut64().
Referenced by rz_core_types_union_print_all(), and rz_type_list_union_handler().
RZ_IPI void rz_core_types_union_print_all | ( | RzCore * | core, |
RzOutputMode | mode | ||
) |
Definition at line 198 of file ctypes.c.
References rz_core_t::analysis, NULL, pj_a(), pj_end(), pj_free(), pj_new(), pj_string(), RZ_BASE_TYPE_KIND_UNION, rz_cons_println(), rz_core_types_union_print(), rz_list_free(), RZ_OUTPUT_MODE_JSON, rz_type_db_get_base_types_of_kind(), and rz_analysis_t::typedb.
Referenced by rz_type_list_union_handler().
Definition at line 613 of file ctypes.c.
References rz_core_t::analysis, rz_base_type_t::name, RZ_BASE_TYPE_KIND_UNION, rz_core_types_show_format(), rz_list_free(), RZ_OUTPUT_MODE_RIZIN, rz_type_db_get_base_types_of_kind(), and rz_analysis_t::typedb.
Referenced by rz_type_list_union_handler().
Definition at line 1029 of file ctypes.c.
References rz_core_t::analysis, coremodepj::core, eprintf, free(), NULL, rz_type_db_t::parser, rz_str_newf(), rz_type_parse_string_stateless(), autogen_x86imm::tmp, type, and rz_analysis_t::typedb.
Referenced by rz_type_define_handler().
RZ_IPI bool rz_types_open_editor | ( | RzCore * | core, |
RZ_NONNULL const char * | name | ||
) |
Definition at line 1075 of file ctypes.c.
References rz_core_t::analysis, coremodepj::core, free(), rz_base_type_t::name, NULL, rz_core_base_type_as_c(), rz_core_editor(), RZ_LOG_ERROR, rz_return_val_if_fail, rz_type_db_edit_base_type(), rz_type_db_get_compound_type(), cmd_descs_generate::str, autogen_x86imm::tmp, and rz_analysis_t::typedb.
Referenced by rz_type_open_editor_handler().
Definition at line 1046 of file ctypes.c.
References rz_core_t::analysis, rz_core_t::config, coremodepj::core, free(), NULL, rz_type_db_t::parser, path, rz_config_get(), rz_core_editor(), rz_file_exists(), RZ_LOG_ERROR, rz_type_parse_file_stateless(), rz_type_parse_string_stateless(), autogen_x86imm::tmp, and rz_analysis_t::typedb.
Referenced by rz_type_open_file_handler().
|
static |
Definition at line 650 of file ctypes.c.
References rz_core_t::analysis, free(), link, rz_analysis_hint_set_offset(), rz_analysis_op_ismemref(), rz_analysis_type_paths_by_address(), rz_list_get_top(), rz_list_length(), rz_meta_set_string(), RZ_META_TYPE_VARTYPE, rz_return_if_fail, rz_type_as_string(), RZ_TYPE_KIND_IDENTIFIER, strdup(), and rz_analysis_t::typedb.
Referenced by resolve_type_links().
Definition at line 626 of file ctypes.c.
References rz_core_t::analysis, rz_analysis_function_t::name, reg, rz_analysis_t::reg, regname(), rz_analysis_hint_t::ret, rz_analysis_cc_func(), rz_analysis_cc_ret(), rz_analysis_get_fcn_in(), rz_analysis_hint_free(), rz_analysis_hint_get(), rz_reg_get(), rz_reg_set_value(), and UT64_MAX.
Referenced by rz_core_link_stroff().
Definition at line 924 of file ctypes.c.
References c, k, rz_core_types_link_print(), rz_return_val_if_fail, and v.
Referenced by rz_core_types_link_print_all().