[Lldb-commits] [PATCH] D60405: MinidumpYAML: Add support for ModuleList stream

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 9 07:09:00 PDT 2019


clayborg added inline comments.


================
Comment at: lib/ObjectYAML/MinidumpYAML.cpp:91
+
 size_t BlobAllocator::allocateString(StringRef Str) {
   SmallVector<UTF16, 32> WStr;
----------------
labath wrote:
> clayborg wrote:
> > Might be nice to unique the strings in here?
> Yeah, that would be possible, but it does not seem worth the trouble at the moment. However, I do have some ideas about reusing this code for saving minidump snapshots from within lldb (right now that is only supported on windows, by delegating to some windows APIs). At that point it may become more important to generate more compact minidump representations.
Yeah, after seeing some less than optimal Breakpad generated minidump files, I wanted to see string sharing and general data blob sharing for any LocationDescription entries that just specify a size and RVA offset. Breakpad likes to generate UUIDs for each module in the module list, including all zeros in unique blobs for each UUID. That got me thinking about sharing data blobs


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60405/new/

https://reviews.llvm.org/D60405





More information about the lldb-commits mailing list