Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_types.h>
#include <rz_util.h>
#include <rz_util/rz_print.h>
#include <rz_lib.h>
#include <rz_bin.h>
#include "dmp/dmp64.h"
Go to the source code of this file.
Macros | |
#define | FIELD_COMMENT(header, field, comment) rz_list_append(fields, rz_bin_field_new(rz_offsetof(header, field), rz_offsetof(header, field), sizeof(((header *)0)->field), #field, comment, sizeof(((header *)0)->field) == 4 ? "x" : "q", false)); |
#define | FIELD(header, field) FIELD_COMMENT(header, field, NULL) |
Functions | |
static Sdb * | get_sdb (RzBinFile *bf) |
static void | destroy (RzBinFile *bf) |
static void | header (RzBinFile *bf) |
static RzList * | strings (RzBinFile *bf) |
static RzList * | fields (RzBinFile *bf) |
static RzBinInfo * | info (RzBinFile *bf) |
static RzList * | maps (RzBinFile *bf) |
static RzList * | libs (RzBinFile *bf) |
static int | file_type (RzBinFile *bf) |
static char * | regstate (RzBinFile *bf) |
static bool | load_buffer (RzBinFile *bf, RzBinObject *obj, RzBuffer *buf, Sdb *sdb) |
static bool | check_buffer (RzBuffer *b) |
Variables | |
RzBinPlugin | rz_bin_plugin_dmp64 |
RZ_API RzLibStruct | rizin_plugin |
#define FIELD | ( | header, | |
field | |||
) | FIELD_COMMENT(header, field, NULL) |
#define FIELD_COMMENT | ( | header, | |
field, | |||
comment | |||
) | rz_list_append(fields, rz_bin_field_new(rz_offsetof(header, field), rz_offsetof(header, field), sizeof(((header *)0)->field), #field, comment, sizeof(((header *)0)->field) == 4 ? "x" : "q", false)); |
Definition at line 268 of file bin_dmp64.c.
References b, DMP64_MAGIC, and rz_buf_read_at().
|
static |
Definition at line 18 of file bin_dmp64.c.
References rz_bin_object_t::bin_obj, rz_bin_file_t::o, and rz_bin_dmp64_free().
Definition at line 87 of file bin_dmp64.c.
References rz_bin_object_t::bin_obj, rz_bin_dmp64_obj_t::bmp_header, dmp64_header::BugCheckCode, FIELD, FIELD_COMMENT, rz_bin_dmp64_obj_t::header, header(), dmp64_triage::Ia64, rz_bin_file_t::o, rz_bin_dmp64_bugcheckcode_as_str(), rz_bin_field_free(), rz_bin_field_new(), rz_list_newf(), rz_offsetof, and rz_bin_dmp64_obj_t::triage64_header.
Definition at line 248 of file bin_dmp64.c.
References RZ_BIN_TYPE_CORE.
Definition at line 12 of file bin_dmp64.c.
References rz_bin_object_t::bin_obj, rz_bin_dmp64_obj_t::kv, NULL, rz_bin_file_t::o, and rz_return_val_if_fail.
|
static |
Definition at line 22 of file bin_dmp64.c.
References dmp64_triage::ArchitectureSpecific, rz_bin_object_t::bin_obj, rz_bin_dmp64_obj_t::bmp_header, dmp64_triage::BrokenDriverOffset, dmp64_header::BugCheckCode, dmp64_header::BugCheckParameter1, dmp64_header::BugCheckParameter2, dmp64_header::BugCheckParameter3, dmp64_header::BugCheckParameter4, dmp64_triage::CallStackOffset, rz_bin_t::cb_printf, dmp64_triage::ContextOffset, dmp64_triage::DataBlocksCount, dmp64_triage::DataBlocksOffset, dmp64_triage::DataPageAddress, dmp64_triage::DataPageOffset, dmp64_triage::DataPageSize, dmp64_triage::DebuggerDataOffset, dmp64_triage::DebuggerDataSize, dmp64_header::DirectoryTableBase, dmp64_triage::DriverCount, dmp64_triage::DriverListOffset, dmp64_triage::ExceptionOffset, dmp_bmp_header::FirstPage, rz_bin_dmp64_obj_t::header, dmp64_triage::Ia64, dmp64_header::KdDebuggerDataBlock, dmp64_header::MachineImageType, dmp64_header::MajorVersion, dmp64_header::MinorVersion, dmp64_triage::MmOffset, dmp64_header::NumberProcessors, rz_bin_file_t::o, dmp_bmp_header::Pages, PFMT32x, PFMT64x, dmp64_header::PfnDataBase, dmp64_triage::PrcbOffset, dmp64_triage::ProcessOffset, dmp64_header::ProductType, dmp64_header::PsActiveProcessHead, dmp64_header::PsLoadedModuleList, rz_bin_file_t::rbin, rz_bin_dmp64_bugcheckcode_as_str(), rz_read_le32(), rz_read_le64(), dmp64_header::SecondaryDataState, dmp64_triage::ServicePackBuild, dmp64_triage::SizeOfCallStack, dmp64_triage::SizeOfDump, dmp64_triage::StringPoolOffset, dmp64_triage::StringPoolSize, dmp64_header::SuiteMask, dmp64_triage::ThreadOffset, dmp64_triage::TopOfStack, dmp_bmp_header::TotalPresentPages, rz_bin_dmp64_obj_t::triage64_header, dmp64_triage::TriageOptions, dmp64_triage::UnloadedDriversOffset, and dmp64_triage::ValidOffset.
Referenced by fields().
Definition at line 151 of file bin_dmp64.c.
References rz_bin_info_t::arch, rz_bin_object_t::bin_obj, rz_bin_info_t::bits, rz_bin_info_t::has_va, rz_bin_dmp64_obj_t::header, rz_bin_info_t::machine, dmp64_header::MachineImageType, dmp64_header::MajorVersion, MDMP_VER_NT_DOMAIN_CONTROLLER, MDMP_VER_NT_SERVER, MDMP_VER_NT_WORKSTATION, dmp64_header::MinorVersion, NULL, rz_bin_file_t::o, rz_bin_info_t::os, dmp64_header::ProductType, rz_bin_info_t::rclass, RZ_NEW0, rz_str_newf(), strdup(), and rz_bin_info_t::type.
Definition at line 230 of file bin_dmp64.c.
References rz_bin_object_t::bin_obj, rz_bin_dmp64_obj_t::drivers, dmp_driver_desc::file, free(), if(), NULL, rz_bin_file_t::o, rz_list_append(), rz_list_newf(), and strdup().
|
static |
Definition at line 257 of file bin_dmp64.c.
References rz_bin_object_t::bin_obj, rz_bin_dmp64_obj_t::kv, rz_bin_dmp64_new_buf(), rz_return_val_if_fail, and sdb_ns_set().
Definition at line 188 of file bin_dmp64.c.
References rz_bin_object_t::bin_obj, rz_bin_dmp64_obj_t::datablocks, dmp_page_desc::file_offset, if(), map(), NULL, rz_bin_file_t::o, dmp64_triage_datablock::offset, rz_bin_dmp64_obj_t::pages, PFMT64x, rz_bin_map_free(), rz_list_append(), rz_list_newf(), RZ_NEW0, RZ_PERM_R, rz_str_newf(), dmp_page_desc::size, dmp64_triage_datablock::size, dmp_page_desc::start, and dmp64_triage_datablock::virtualAddress.
|
static |
Definition at line 252 of file bin_dmp64.c.
References rz_bin_object_t::bin_obj, dmp64_header::ContextRecord, rz_bin_dmp64_obj_t::header, rz_bin_file_t::o, and rz_hex_bin2strdup().
Definition at line 83 of file bin_dmp64.c.
References rz_bin_file_strings().
RZ_API RzLibStruct rizin_plugin |
Definition at line 295 of file bin_dmp64.c.
RzBinPlugin rz_bin_plugin_dmp64 |
Definition at line 276 of file bin_dmp64.c.