qychen1982 / crashpad

Automatically exported from code.google.com/p/crashpad
0 stars 0 forks source link

Add OS-specific resource information to minidump files #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We should capture the following information in minidump files, based on 
available OS primitives:

 - File descriptors (POSIX)
 - HANDLEs (Windows)
 - Mach ports (Mac OS X)

File descriptors may not make sense to report on Windows, where file 
descriptors are not OS primitives and there would be a “which CRT?” problem.

Windows’ dbghelp.h (but not currently ours) has MINIDUMP_HANDLE_DATA_STREAM 
and MINIDUMP_HANDLE_DESCRIPTOR[_2]:

https://msdn.microsoft.com/en-us/library/windows/desktop/ms680372(v=vs.85).aspx
https://msdn.microsoft.com/en-us/library/windows/desktop/ms680394(v=vs.85).aspx
https://msdn.microsoft.com/en-us/library/windows/desktop/ms680373(v=vs.85).aspx

These can be used for HANDLE reporting.

New types will be needed for file descriptor and Mach port reporting. These can 
hang off of MinidumpCrashpadInfo.

Original issue reported on code.google.com by mark@chromium.org on 25 Mar 2015 at 6:34