Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | VICE_MAGIC_LEN sizeof(VICE_MAGIC) - 1 |
#define | CMP_MODULE(x) memcmp(module.module_name, x, sizeof(x) - 1) |
Functions | |
static Sdb * | get_sdb (RzBinFile *bf) |
static bool | check_buffer (RzBuffer *b) |
static bool | load_buffer (RzBinFile *bf, RzBinObject *obj, RzBuffer *b, Sdb *sdb) |
static RzList * | mem (RzBinFile *bf) |
static RzList * | sections (RzBinFile *bf) |
static RzBinInfo * | info (RzBinFile *bf) |
static RzList * | symbols (RzBinFile *bf) |
static void | destroy (RzBinFile *bf) |
static RzList * | entries (RzBinFile *bf) |
Variables | |
static const char | VICE_MAGIC [] = "VICE Snapshot File\032" |
static const char | VICE_MAINCPU [] = "MAINCPU" |
static const char | VICE_C64MEM [] = "C64MEM" |
static const char | VICE_C64ROM [] = "C64ROM" |
static const char | VICE_C128MEM [] = "C128MEM" |
static const char | VICE_C128ROM [] = "C128ROM" |
struct { | |
const char * name | |
const char * desc | |
const int offset_mem | |
const int ram_size | |
} | _machines [] |
static const int | MACHINES_MAX = sizeof(_machines) / sizeof(_machines[0]) |
RzBinPlugin | rz_bin_plugin_vsf |
RZ_API RzLibStruct | rizin_plugin |
#define VICE_MAGIC_LEN sizeof(VICE_MAGIC) - 1 |
Definition at line 34 of file bin_vsf.c.
References b, rz_buf_read_at(), VICE_MAGIC, and VICE_MAGIC_LEN.
Referenced by load_buffer().
|
static |
Definition at line 498 of file bin_vsf.c.
References rz_bin_object_t::bin_obj, free(), rz_bin_vsf_obj::maincpu, and rz_bin_file_t::o.
Definition at line 504 of file bin_vsf.c.
References _machines, rz_bin_object_t::bin_obj, if(), rz_bin_vsf_obj::machine_idx, rz_bin_vsf_obj::maincpu, rz_bin_vsf_obj::mem, NULL, rz_bin_file_t::o, rz_bin_addr_t::paddr, rz_list_append(), rz_list_new(), RZ_NEW0, and rz_bin_addr_t::vaddr.
Definition at line 28 of file bin_vsf.c.
References rz_bin_object_t::bin_obj, NULL, rz_bin_file_t::o, and rz_return_val_if_fail.
Definition at line 288 of file bin_vsf.c.
References _machines, rz_bin_info_t::arch, rz_bin_object_t::bin_obj, rz_bin_info_t::bits, rz_bin_file_t::buf, desc, eprintf, rz_bin_info_t::file, rz_bin_file_t::file, rz_bin_info_t::has_va, if(), rz_bin_vsf_obj::kv, rz_bin_info_t::machine, rz_bin_vsf_obj::machine_idx, rz_bin_vsf_obj::maincpu, memset(), NULL, rz_bin_file_t::o, rz_bin_info_t::os, read(), rz_buf_read_at(), RZ_NEW0, sdb_num_set(), strdup(), and rz_bin_info_t::type.
|
static |
Definition at line 43 of file bin_vsf.c.
References _machines, rz_bin_object_t::bin_obj, rz_bin_file_t::buf, check_buffer(), CMP_MODULE, eprintf, free(), i, rz_bin_vsf_obj::kv, rz_bin_vsf_obj::machine_idx, MACHINES_MAX, rz_bin_vsf_obj::maincpu, rz_bin_vsf_obj::mem, NULL, read(), rz_bin_vsf_obj::rom, rz_buf_fread_at(), rz_buf_read_at(), rz_buf_size(), RZ_NEW, RZ_NEW0, rz_offsetof, sdb_new0(), sdb_ns_set(), rz_bin_file_t::size, ut64(), VICE_C128MEM, VICE_C128ROM, VICE_C64MEM, VICE_C64ROM, and VICE_MAINCPU.
Definition at line 117 of file bin_vsf.c.
References _machines, rz_bin_object_t::bin_obj, rz_list_t::free, free(), if(), regress::m, rz_bin_vsf_obj::machine_idx, NULL, rz_bin_file_t::o, rz_list_append(), rz_list_free(), rz_list_new(), RZ_NEW0, rz_str_rwx(), and strdup().
Definition at line 141 of file bin_vsf.c.
References _machines, rz_bin_object_t::bin_obj, if(), rz_bin_vsf_obj::machine_idx, rz_bin_vsf_obj::mem, rz_bin_section_t::name, NULL, rz_bin_file_t::o, rz_bin_section_t::paddr, rz_bin_section_t::perm, rz_bin_vsf_obj::rom, rz_list_append(), rz_list_new(), RZ_NEW0, rz_offsetof, RZ_PERM_RWX, RZ_PERM_RX, rz_bin_section_t::size, strdup(), rz_bin_section_t::vaddr, and rz_bin_section_t::vsize.
Definition at line 332 of file bin_vsf.c.
References _machines, rz_bin_object_t::bin_obj, calloc(), i, if(), rz_bin_vsf_obj::machine_idx, rz_bin_vsf_obj::mem, rz_bin_symbol_t::name, NULL, rz_bin_file_t::o, rz_bin_symbol_t::ordinal, rz_bin_symbol_t::paddr, RZ_BIN_SIZEOF_STRINGS, rz_bin_symbol_free(), rz_list_append(), rz_list_newf(), RZ_NEW0, rz_bin_symbol_t::size, and rz_bin_symbol_t::vaddr.
const { ... } _machines[] |
Referenced by entries(), info(), load_buffer(), mem(), sections(), and symbols().
const char* desc |
Definition at line 19 of file bin_vsf.c.
Referenced by __close(), __desc_cache_cleanup_cb(), __desc_cache_commit_cb(), __desc_fini_cb(), __file_history_down(), __file_history_up(), __lseek(), __open(), __rap_accept(), __read(), __resize(), __write(), _io_malloc_buf(), _io_malloc_off(), _io_malloc_set_buf(), _io_malloc_set_off(), _io_malloc_set_sz(), _io_malloc_sz(), add_map(), basefind_new_bin_file(), bsd_desc_list(), build_tree(), close_but_cb(), core_file_do_load_for_debug(), cpu_memory_map(), desc_fini_cb(), desc_list_cb(), desc_list_json_cb(), desc_list_quiet_cb(), desc_list_table_cb(), desc_list_visual_cb(), do_autocmplt_cmdidentifier(), ds_print_comments_right(), ds_show_comments_describe(), file_save(), file_save_cb(), filecb(), find_apk_binary(), find_autocomplete(), find_reusable_file(), gen_bitlen(), get_filename(), hash_context_create_desc_io_stdin(), hash_context_create_desc_io_string(), hash_context_run(), ihex_write(), info(), init_desc_list_visual_cb(), io_create_mem_map(), io_default_get_buf(), io_desc_new(), io_map_add(), iob_read(), iob_write(), isValidAddress(), kd_read_packet(), kd_send_ctrl_packet(), kd_send_data_packet(), lh5801_decode(), lh5801_print_insn(), linux_desc_list(), map_cpu_memory(), map_multi_dex(), open_nobin_file(), print_reg(), read_desc(), recursive_help(), recursive_help_go(), reopen_in_malloc_cb(), reopen_nobin_headers(), resolve_import_cb(), rz_analysis_xrefs_from_list_handler(), rz_bin_java_class_as_source_code(), rz_bin_java_class_const_pool_as_symbols(), rz_bin_java_class_methods_as_symbols(), rz_bin_mdmp_init_directory_entry(), rz_cmd_alias(), rz_config_desc(), rz_config_node_desc(), rz_core_bin_apply_maps(), rz_core_bin_load(), rz_core_bin_set_arch_bits(), rz_core_bin_whole_strings(), rz_core_file_binlist(), rz_core_file_close(), rz_core_file_find_by_name(), rz_core_file_info_print(), rz_core_file_io_desc_closed(), rz_core_file_open_load(), rz_core_file_open_many(), rz_core_file_print(), rz_core_file_reopen_debug(), rz_core_file_reopen_remote_debug(), rz_core_io_pcache_print(), rz_core_raw_file_print(), rz_core_rtr_gdb_cb(), rz_core_sysenv_begin(), rz_core_vfile_bin_file_deleted(), rz_core_visual_config(), rz_core_visual_title(), rz_debug_desc_new(), rz_debug_dmp_init(), rz_debug_gdb_detach(), rz_debug_gdb_reg_read(), rz_debug_winkd_attach(), rz_diff_io_open(), rz_io_ar_open_many(), rz_io_desc_add(), rz_io_desc_cache_cleanup(), rz_io_desc_cache_commit(), rz_io_desc_cache_fini(), rz_io_desc_cache_init(), rz_io_desc_cache_list(), rz_io_desc_cache_read(), rz_io_desc_cache_write(), rz_io_desc_close(), rz_io_desc_del(), rz_io_desc_exchange(), rz_io_desc_free(), rz_io_desc_get_base(), rz_io_desc_get_buf(), rz_io_desc_get_next(), rz_io_desc_get_pid(), rz_io_desc_get_prev(), rz_io_desc_get_tid(), rz_io_desc_is_blockdevice(), rz_io_desc_is_chardevice(), rz_io_desc_is_dbg(), rz_io_desc_new(), rz_io_desc_open(), rz_io_desc_open_plugin(), rz_io_desc_read(), rz_io_desc_read_at(), rz_io_desc_resize(), rz_io_desc_seek(), rz_io_desc_size(), rz_io_desc_write(), rz_io_desc_write_at(), rz_io_fd_get_base(), rz_io_fd_get_name(), rz_io_fd_get_pid(), rz_io_fd_get_tid(), rz_io_fd_is_dbg(), rz_io_fd_open(), rz_io_fd_read(), rz_io_fd_read_at(), rz_io_fd_write(), rz_io_fd_write_at(), rz_io_open(), rz_io_open_at(), rz_io_open_buffer(), rz_io_open_many(), rz_io_open_nomap(), rz_io_plugin_read(), rz_io_plugin_read_at(), rz_io_plugin_write(), rz_io_plugin_write_at(), rz_io_use_fd(), rz_lib_add_handler(), rz_list_mne_handler(), rz_main_rizin(), rz_open_binary_add_handler(), rz_open_binary_file_handler(), rz_open_malloc_handler(), rz_open_maps_all_fd_handler(), rz_open_maps_map_fd_handler(), rz_open_maps_map_handler(), rz_open_show_current_handler(), rz_write_pcache_commit_handler(), rz_write_pcache_list_handler(), showreg(), spp_help(), vf_open(), w32_desc_list(), winkd_kdctx_free(), and winkd_kdctx_new().
Definition at line 26 of file bin_vsf.c.
Referenced by load_buffer().
RZ_API RzLibStruct rizin_plugin |
RzBinPlugin rz_bin_plugin_vsf |
|
static |
Definition at line 14 of file bin_vsf.c.
Referenced by load_buffer().
|
static |
Definition at line 15 of file bin_vsf.c.
Referenced by load_buffer().
|
static |
Definition at line 12 of file bin_vsf.c.
Referenced by load_buffer().
|
static |
Definition at line 13 of file bin_vsf.c.
Referenced by load_buffer().
|
static |
Definition at line 9 of file bin_vsf.c.
Referenced by check_buffer().
|
static |
Definition at line 11 of file bin_vsf.c.
Referenced by load_buffer().