Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
|
static |
Definition at line 199 of file cpdb.c.
References addr, rz_core_t::flags, create_tags_rz::fname, free(), RzPdbGDataStream::global_list, name, GDataGlobal::name, GDataGlobal::offset, rz_bin_pdb_omap_remap(), rz_demangler_msvc(), rz_flag_item_set_realname(), rz_flag_set(), RZ_FLAGS_FS_SYMBOLS, rz_list_get_n(), rz_name_filter2(), rz_return_if_fail, rz_str_newf(), rz_str_replace(), rz_pdb_t::s_gdata, rz_pdb_t::s_omap, rz_pdb_t::s_pe, RzPdbPeStream::sections_hdrs, GDataGlobal::segment, strdup(), ut64(), and PeImageSectionHeader::virtual_address.
Referenced by rz_core_pdb_load_info().
|
static |
Definition at line 24 of file cpdb.c.
References rz_type_enum_case_t::name, rz_type_struct_member_t::name, rz_type_union_member_t::name, rz_type_struct_member_t::offset, rz_type_union_member_t::offset, pj_end(), pj_ka(), pj_kN(), pj_kn(), pj_ks(), pj_o(), RZ_BASE_TYPE_KIND_ENUM, RZ_BASE_TYPE_KIND_STRUCT, RZ_BASE_TYPE_KIND_UNION, RZ_FREE, rz_return_if_fail, rz_type_as_string(), rz_vector_foreach, type, rz_type_struct_member_t::type, rz_type_union_member_t::type, types, and rz_type_enum_case_t::val.
Referenced by rz_core_bin_pdb_types_print().
|
static |
Definition at line 8 of file cpdb.c.
References eprintf, NULL, rz_return_if_fail, rz_strbuf_append(), rz_strbuf_free(), rz_strbuf_get(), rz_strbuf_new(), rz_type_db_base_type_as_pretty_string(), RZ_TYPE_PRINT_END_NEWLINE, RZ_TYPE_PRINT_MULTILINE, type, and types.
Referenced by rz_core_bin_pdb_types_print().
RZ_API char* rz_core_bin_pdb_gvars_as_string | ( | RZ_NONNULL const RzPdb * | pdb, |
const ut64 | img_base, | ||
PJ * | pj, | ||
const RzOutputMode | mode | ||
) |
Return the PDB global vars string.
pdb | PDB instance |
img_base | image base addr |
pj | JSON instance |
mode | RzOutputMode |
Definition at line 128 of file cpdb.c.
References free(), RzPdbGDataStream::global_list, name, GDataGlobal::name, PeImageSectionHeader::name, NULL, GDataGlobal::offset, PDB_SIZEOF_SECTION_NAME, PFMT64x, pj_end(), pj_ka(), pj_kN(), pj_ks(), pj_o(), pj_string(), rz_bin_pdb_omap_remap(), rz_demangler_msvc(), rz_list_get_n(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_STANDARD, rz_return_val_if_fail, rz_strbuf_append(), rz_strbuf_appendf(), rz_strbuf_free(), rz_strbuf_get(), rz_strbuf_new(), RzPdbPeStream::sections_hdrs, GDataGlobal::segment, cmd_descs_generate::str, strdup(), GDataGlobal::symtype, ut64(), and PeImageSectionHeader::virtual_address.
Referenced by GetHeapGlobalsOffset(), and rz_core_bin_pdb_gvars_print().
|
static |
Definition at line 188 of file cpdb.c.
References free(), rz_core_bin_pdb_gvars_as_string(), RZ_OUTPUT_MODE_STANDARD, rz_return_if_fail, and cmd_descs_generate::str.
Referenced by rz_core_pdb_info_print().
|
static |
Definition at line 100 of file cpdb.c.
References eprintf, pdb_types_print_json(), pdb_types_print_standard(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_STANDARD, rz_return_if_fail, and rz_pdb_t::s_tpi.
Referenced by rz_core_pdb_info_print().
RZ_API void rz_core_pdb_info_print | ( | RZ_NONNULL RzCore * | core, |
RZ_NONNULL RzTypeDB * | db, | ||
RZ_NONNULL RzPdb * | pdb, | ||
RZ_NONNULL RzCmdStateOutput * | state | ||
) |
Print parsed PDB file info.
db | RzTypeDB |
pdb | instance of PDB |
state | Output State |
Definition at line 273 of file cpdb.c.
References baddr(), eprintf, rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), rz_config_get_i(), rz_core_bin_pdb_gvars_print(), rz_core_bin_pdb_types_print(), rz_return_if_fail, and ut64().
Referenced by rz_cmd_info_pdb_show_handler(), and rz_core_bin_print().
RZ_API RzPdb* rz_core_pdb_load_info | ( | RZ_NONNULL RzCore * | core, |
RZ_NONNULL const char * | file | ||
) |
Parse PDB file info and integrate with typedb.
core | RzCore instance |
file | Path of PDB file |
Definition at line 245 of file cpdb.c.
References baddr(), eprintf, NULL, pdb_set_symbols(), rz_bin_get_baddr(), rz_bin_pdb_parse_from_file(), rz_config_get_i(), rz_file_basename(), rz_parse_pdb_types(), rz_return_val_if_fail, ut64(), and UT64_MAX.
Referenced by rz_cmd_info_pdb_show_handler(), rz_core_bin_pdb_load(), and rz_core_bin_print().