[Lldb-commits] [PATCH] D59482: [ObjectYAML] Add basic minidump generation support
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 18 03:09:15 PDT 2019
labath created this revision.
labath added reviewers: jhenderson, zturner, clayborg, aprantl.
Herald added a subscriber: mgorny.
Herald added a project: LLVM.
This patch adds the ability to read a yaml form of a minidump file and
write it out as binary. Apart from the minidump header and the stream
directory, only three basic stream kinds are supported:
- Text: This kind is used for streams which contain textual data. This is typically the contents of a /proc file on linix (e.g. /proc/PID/maps). In this case, we just put the raw stream contents into the yaml.
- SystemInfo: This stream contains various bits of information about the host system in binary form. We expose the data in a structured form.
- Hex: This kind is used as a fallback when we don't have any special knowledge about the stream. In this case, we just print the stream contents in hex.
For this code to be really useful, more stream kinds will need to be
added (particularly for things like lists of memory regions and loaded
modules). However, these can be added incrementally.
Repository:
rL LLVM
https://reviews.llvm.org/D59482
Files:
include/llvm/ObjectYAML/MinidumpYAML.h
include/llvm/ObjectYAML/ObjectYAML.h
lib/ObjectYAML/CMakeLists.txt
lib/ObjectYAML/MinidumpYAML.cpp
lib/ObjectYAML/ObjectYAML.cpp
tools/yaml2obj/yaml2obj.cpp
tools/yaml2obj/yaml2obj.h
unittests/ObjectYAML/CMakeLists.txt
unittests/ObjectYAML/MinidumpYAMLTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59482.191063.patch
Type: text/x-patch
Size: 25189 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190318/79c1e5d1/attachment-0001.bin>
More information about the lldb-commits
mailing list