Rizin
unix-like reverse engineering framework and cli tools
mdmp.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2016 Davis
2 // SPDX-FileCopyrightText: 2016 Alex Kornitzer <alex.kornitzer@countercept.com>
3 // SPDX-License-Identifier: LGPL-3.0-only
4 
5 #ifndef MDMP_H
6 #define MDMP_H
7 
8 #include <rz_types.h>
9 #include <rz_util.h>
10 #include <rz_lib.h>
11 #include <rz_bin.h>
12 
13 #include "mdmp_specs.h"
14 #include "mdmp_pe.h"
15 #include "mdmp_pe64.h"
16 
18  struct minidump_header *hdr;
19 
20  /* Encountered streams */
24 
25  struct minidump_exception_stream *exception;
26  struct minidump_function_table_stream *function_table;
27  struct minidump_handle_data_stream *handle_data;
28  struct minidump_system_info *system_info;
29 
30  union {
31  struct minidump_misc_info *misc_info_1;
32  struct minidump_misc_info_2 *misc_info_2;
34 
35  /* Lists */
45  struct {
50 
51  /* Binary memory objects */
54 
56  size_t size;
58  Sdb *kv;
59 };
60 
62 void rz_bin_mdmp_free(struct rz_bin_mdmp_obj *obj);
64 ut32 rz_bin_mdmp_get_perm(struct rz_bin_mdmp_obj *obj, ut64 vaddr);
65 struct minidump_memory_info *rz_bin_mdmp_get_mem_info(struct rz_bin_mdmp_obj *obj, ut64 vaddr);
66 
67 #endif /* MDMP_H */
uint32_t ut32
voidpf void * buf
Definition: ioapi.h:138
uint8_t ut8
Definition: lh5801.h:11
void rz_bin_mdmp_free(struct rz_bin_mdmp_obj *obj)
Definition: mdmp.c:97
ut64 rz_bin_mdmp_get_paddr(struct rz_bin_mdmp_obj *obj, ut64 vaddr)
Definition: mdmp.c:11
struct rz_bin_mdmp_obj * rz_bin_mdmp_new_buf(RzBuffer *buf)
Definition: mdmp.c:1389
ut32 rz_bin_mdmp_get_perm(struct rz_bin_mdmp_obj *obj, ut64 vaddr)
Definition: mdmp.c:47
struct minidump_memory_info * rz_bin_mdmp_get_mem_info(struct rz_bin_mdmp_obj *obj, ut64 vaddr)
Definition: mdmp.c:30
ut64 rva64_t
Definition: mdmp_specs.h:77
struct minidump_handle_data_stream * handle_data
Definition: mdmp.h:27
struct minidump_exception_stream * exception
Definition: mdmp.h:25
struct minidump_misc_info_2 * misc_info_2
Definition: mdmp.h:32
struct minidump_misc_info * misc_info_1
Definition: mdmp.h:31
struct minidump_function_table_stream * function_table
Definition: mdmp.h:26
struct minidump_system_info * system_info
Definition: mdmp.h:28
union rz_bin_mdmp_obj::minidump_streams::@162 misc_info
struct rz_bin_mdmp_obj::minidump_streams::@163 memories64
RzList * pe32_bins
Definition: mdmp.h:52
Sdb * kv
Definition: mdmp.h:58
size_t size
Definition: mdmp.h:56
ut8 endian
Definition: mdmp.h:57
RzBuffer * b
Definition: mdmp.h:55
struct rz_bin_mdmp_obj::minidump_streams streams
RzList * pe64_bins
Definition: mdmp.h:53
struct minidump_header * hdr
Definition: mdmp.h:18
Definition: sdb.h:63
ut64(WINAPI *w32_GetEnabledXStateFeatures)()