This is an archive of the discontinued LLVM Phabricator instance.

Object/Minidump: Add support for the ThreadList stream
ClosedPublic

Authored by labath on Apr 24 2019, 6:08 AM.

Details

Summary

The stream contains the list of threads belonging to the process
described by the minidump. Its structure is the same as the ModuleList
stream, and in fact, I have generalized the ModuleList reading code to
handle this stream too.

Diff Detail

Repository
rL LLVM

Event Timeline

labath created this revision.Apr 24 2019, 6:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 24 2019, 6:09 AM

LGTM, but since in llvm someone else should ok too.

jhenderson accepted this revision.May 1 2019, 1:56 AM

Aside from a couple of nits, LGTM.

lib/Object/Minidump.cpp
69 ↗(On Diff #196435)

Nit (was there before): to 8-byte -> to an 8-byte

unittests/Object/MinidumpTest.cpp
446 ↗(On Diff #196435)

I missed this in the other tests, but this could be an ArrayRef<uint8_t> instead of a const std::vector<uint8_t> &. Feel free to leave it as is or to update it in an NFC throughout this test afterwards, if you would prefer to leave it to another patch.

This revision is now accepted and ready to land.May 1 2019, 1:56 AM
labath marked 2 inline comments as done.May 2 2019, 12:38 AM

Thanks for the review.

unittests/Object/MinidumpTest.cpp
446 ↗(On Diff #196435)

There's just one more test besides this one, so I'll update everything in this patch.

This revision was automatically updated to reflect the committed changes.