MinidumpParsing: pid, modules, exceptions, strings
authorDimitar Vlahovski <dvlahovski@google.com>
Tue, 13 Sep 2016 15:54:38 +0000 (15:54 +0000)
committerDimitar Vlahovski <dvlahovski@google.com>
Tue, 13 Sep 2016 15:54:38 +0000 (15:54 +0000)
commit1d2859ef6d3d158ae745578b07f5d01d6dca5b7a
tree74fd210b87ae6d807b7edfaa9881eb9fadcc8c54
parent45b467523b34f0ad0fa03bd17a15a294d73ae808
MinidumpParsing: pid, modules, exceptions, strings

Summary:
Added parsing of the MiscInfo data stream.
The main member of it that we care about is the process_id
On Linux generated Minidump (from breakpad) we don't have
the MiscInfo, we have the /proc/$pid/status from where we can get the
pid.
Also parsing the module list - the list of all of the loaded
modules/shared libraries.
Parsing the exception stream.
Parsing MinidumpStrings.

I have unit tests for all of that.
Also added some tests using a Minidump generated from Windows tools (not
from breakpad)

Reviewers: labath, zturner

Subscribers: beanz, lldb-commits

Differential Revision: https://reviews.llvm.org/D24385

llvm-svn: 281348
lldb/source/Plugins/Process/minidump/MinidumpParser.cpp
lldb/source/Plugins/Process/minidump/MinidumpParser.h
lldb/source/Plugins/Process/minidump/MinidumpTypes.cpp
lldb/source/Plugins/Process/minidump/MinidumpTypes.h
lldb/unittests/Process/minidump/CMakeLists.txt
lldb/unittests/Process/minidump/Inputs/fizzbuzz_no_heap.dmp [new file with mode: 0644]
lldb/unittests/Process/minidump/MinidumpParserTest.cpp