[PATCH] D68657: Update MinidumpYAML to use minidump::Exception for exception stream
Joseph Tremoulet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 10 11:31:24 PDT 2019
JosephTremoulet added a comment.
In D68657#1703752 <https://reviews.llvm.org/D68657#1703752>, @labath wrote:
> Therefore I think it would make sense to just spell out each member of that array as a separate member in the yaml representation, which should be a much simpler endeavour. We can use the "actual parameter count" field to suppress the fields that don't contain any value, if they really are zero, which should make the yaml output concise in the usual cases. I think something like this should be sufficient:
> ...
> I think that would strike a good balance between code complexity, output brevity, and being able to generate interesting and potentially invalid inputs for other tools (which is one of the main goals of yaml2obj, and so interpreting the input too strictly is not desired/helpful).
Ok. Updated. I agree the code is simpler this way and the YAML just as readable, plus it's nice not having to worry about buffer overrun. Added testcases with missing and extraneous parameters.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68657/new/
https://reviews.llvm.org/D68657
More information about the llvm-commits
mailing list