Rizin
unix-like reverse engineering framework and cli tools
|
#include "pe.h"
Go to the source code of this file.
Classes | |
struct | SCV_NB10_HEADER |
struct | SGUID |
struct | SCV_RSDS_HEADER |
Macros | |
#define | SIZEOF_FILE_NAME 255 |
Functions | |
static void | free_rsdr_hdr (SCV_RSDS_HEADER *rsds_hdr) |
static void | init_rsdr_hdr (SCV_RSDS_HEADER *rsds_hdr) |
static void | free_cv_nb10_header (SCV_NB10_HEADER *cv_nb10_header) |
static void | init_cv_nb10_header (SCV_NB10_HEADER *cv_nb10_header) |
static bool | get_rsds (ut8 *dbg_data, int dbg_data_len, SCV_RSDS_HEADER *res) |
static void | get_nb10 (ut8 *dbg_data, int dbg_data_len, SCV_NB10_HEADER *res) |
static int | get_debug_info (RzBinPEObj *bin, PE_(image_debug_directory_entry) *dbg_dir_entry, ut8 *dbg_data, int dbg_data_len, SDebugInfo *res) |
static int | read_image_debug_directory_entry (RzBuffer *b, ut64 addr, PE_(image_debug_directory_entry) *entry) |
int PE_() | rz_bin_pe_get_debug_data (RzBinPEObj *bin, SDebugInfo *res) |
#define SIZEOF_FILE_NAME 255 |
|
static |
Definition at line 43 of file pe_debug.c.
References SCV_NB10_HEADER::file_name, and RZ_FREE.
Referenced by init_cv_nb10_header().
|
static |
Definition at line 34 of file pe_debug.c.
References SCV_RSDS_HEADER::file_name, and RZ_FREE.
Referenced by init_rsdr_hdr().
|
static |
Definition at line 71 of file pe_debug.c.
References SCV_NB10_HEADER::age, SCV_RSDS_HEADER::age, SGUID::data1, SGUID::data2, SGUID::data3, SGUID::data4, SDebugInfo::file_name, SCV_NB10_HEADER::file_name, SCV_RSDS_HEADER::file_name, SCV_NB10_HEADER::free, SCV_RSDS_HEADER::free, get_nb10(), get_rsds(), SCV_RSDS_HEADER::guid, SDebugInfo::guidstr, GUIDSTR_LEN, i, IMAGE_DEBUG_TYPE_CODEVIEW, init_cv_nb10_header(), init_rsdr_hdr(), RZ_LOG_ERROR, RZ_LOG_INFO, snprintf, SCV_NB10_HEADER::timestamp, and toupper.
Referenced by rz_bin_pe_get_debug_data().
|
static |
Definition at line 62 of file pe_debug.c.
References SCV_NB10_HEADER::file_name, memcpy(), and strdup().
Referenced by get_debug_info().
|
static |
Definition at line 52 of file pe_debug.c.
References SCV_RSDS_HEADER::file_name, memcpy(), and strdup().
Referenced by get_debug_info().
|
static |
Definition at line 47 of file pe_debug.c.
References SCV_NB10_HEADER::free, free_cv_nb10_header(), and memset().
Referenced by get_debug_info().
|
static |
Definition at line 38 of file pe_debug.c.
References SCV_RSDS_HEADER::free, free_rsdr_hdr(), and memset().
Referenced by get_debug_info().
|
static |
Definition at line 139 of file pe_debug.c.
References addr, b, PE_, PE_READ_STRUCT_FIELD, RZ_BUF_CUR, rz_buf_read(), rz_buf_seek(), RZ_BUF_SET, and st64.
Referenced by rz_bin_pe_get_debug_data().
int PE_() rz_bin_pe_get_debug_data | ( | RzBinPEObj * | bin, |
SDebugInfo * | res | ||
) |
Definition at line 158 of file pe_debug.c.
References bin_pe_rva_to_paddr(), calloc(), get_debug_info(), NULL, PE_, PE_DWord, read_image_debug_directory_entry(), rz_buf_read_at(), rz_buf_size(), RZ_FREE, and RZ_MIN.