Flutter Engine
The Flutter Engine
Classes | Functions | Variables
minidump Namespace Reference

Classes

class  Descriptor
 
class  Enum
 
class  MinidumpFile
 

Functions

def BufferToAddress (buf)
 
def GetProcessIdFromDump (path)
 

Variables

 MINIDUMP_HEADER
 
 MINIDUMP_LOCATION_DESCRIPTOR
 
dictionary MINIDUMP_STREAM_TYPE
 
 MINIDUMP_DIRECTORY
 
 MINIDUMP_MISC_INFO_2
 
int MINIDUMP_MISC1_PROCESS_ID = 0x00000001
 

Function Documentation

◆ BufferToAddress()

def minidump.BufferToAddress (   buf)

Definition at line 131 of file minidump.py.

131def BufferToAddress(buf):
132 obj = ctypes.py_object(buf)
133 address = ctypes.c_void_p()
134 length = ctypes.c_ssize_t()
135 ctypes.pythonapi.PyObject_AsReadBuffer(obj, ctypes.byref(address),
136 ctypes.byref(length))
137 return address.value
138
139
def BufferToAddress(buf)
Definition: minidump.py:131

◆ GetProcessIdFromDump()

def minidump.GetProcessIdFromDump (   path)

Definition at line 179 of file minidump.py.

179def GetProcessIdFromDump(path):
180 try:
181 with MinidumpFile(path) as f:
182 return int(f.GetProcessId())
183 except:
184 return -1
def GetProcessIdFromDump(path)
Definition: minidump.py:179

Variable Documentation

◆ MINIDUMP_DIRECTORY

minidump.MINIDUMP_DIRECTORY
Initial value:
1= Descriptor([('stream_type',
2 Enum(ctypes.c_uint32, MINIDUMP_STREAM_TYPE)),
3 ('location',
4 MINIDUMP_LOCATION_DESCRIPTOR.ctype)])

Definition at line 107 of file minidump.py.

◆ MINIDUMP_HEADER

minidump.MINIDUMP_HEADER
Initial value:
1= Descriptor([('signature', ctypes.c_uint32),
2 ('version', ctypes.c_uint32),
3 ('stream_count', ctypes.c_uint32),
4 ('stream_directories_rva', ctypes.c_uint32),
5 ('checksum', ctypes.c_uint32),
6 ('time_date_stampt', ctypes.c_uint32),
7 ('flags', ctypes.c_uint64)])

Definition at line 74 of file minidump.py.

◆ MINIDUMP_LOCATION_DESCRIPTOR

minidump.MINIDUMP_LOCATION_DESCRIPTOR
Initial value:
1= Descriptor([('data_size', ctypes.c_uint32),
2 ('rva', ctypes.c_uint32)])

Definition at line 82 of file minidump.py.

◆ MINIDUMP_MISC1_PROCESS_ID

int minidump.MINIDUMP_MISC1_PROCESS_ID = 0x00000001

Definition at line 126 of file minidump.py.

◆ MINIDUMP_MISC_INFO_2

minidump.MINIDUMP_MISC_INFO_2
Initial value:
1= Descriptor([
2 ('SizeOfInfo', ctypes.c_uint32),
3 ('Flags1', ctypes.c_uint32),
4 ('ProcessId', ctypes.c_uint32),
5 ('ProcessCreateTime', ctypes.c_uint32),
6 ('ProcessUserTime', ctypes.c_uint32),
7 ('ProcessKernelTime', ctypes.c_uint32),
8 ('ProcessorMaxMhz', ctypes.c_uint32),
9 ('ProcessorCurrentMhz', ctypes.c_uint32),
10 ('ProcessorMhzLimit', ctypes.c_uint32),
11 ('ProcessorMaxIdleState', ctypes.c_uint32),
12 ('ProcessorCurrentIdleState', ctypes.c_uint32),
13])

Definition at line 112 of file minidump.py.

◆ MINIDUMP_STREAM_TYPE

dictionary minidump.MINIDUMP_STREAM_TYPE
Initial value:
1= {
2 'MD_UNUSED_STREAM': 0,
3 'MD_RESERVED_STREAM_0': 1,
4 'MD_RESERVED_STREAM_1': 2,
5 'MD_THREAD_LIST_STREAM': 3,
6 'MD_MODULE_LIST_STREAM': 4,
7 'MD_MEMORY_LIST_STREAM': 5,
8 'MD_EXCEPTION_STREAM': 6,
9 'MD_SYSTEM_INFO_STREAM': 7,
10 'MD_THREAD_EX_LIST_STREAM': 8,
11 'MD_MEMORY_64_LIST_STREAM': 9,
12 'MD_COMMENT_STREAM_A': 10,
13 'MD_COMMENT_STREAM_W': 11,
14 'MD_HANDLE_DATA_STREAM': 12,
15 'MD_FUNCTION_TABLE_STREAM': 13,
16 'MD_UNLOADED_MODULE_LIST_STREAM': 14,
17 'MD_MISC_INFO_STREAM': 15,
18 'MD_MEMORY_INFO_LIST_STREAM': 16,
19 'MD_THREAD_INFO_LIST_STREAM': 17,
20 'MD_HANDLE_OPERATION_LIST_STREAM': 18,
21}

Definition at line 85 of file minidump.py.