[Lldb-commits] [PATCH] D91130: [crashlog] Implement parser for JSON encoded crashlogs

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Nov 9 23:54:46 PST 2020


JDevlieghere created this revision.
JDevlieghere added reviewers: aprantl, jasonmolenda, clayborg.
JDevlieghere requested review of this revision.

Add a parser for JSON crashlogs. The `CrashLogParser` now defers to either the `JSONCrashLogParser` or the `TextCrashLogParser`. It first tries to interpret the input as JSON, and if that fails falling back to the textual parser.


https://reviews.llvm.org/D91130

Files:
  lldb/examples/python/crashlog.py
  lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/Assertion.check
  lldb/test/Shell/ScriptInterpreter/Python/Crashlog/crashlog.test
  lldb/test/Shell/ScriptInterpreter/Python/Crashlog/json_parser.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91130.304062.patch
Type: text/x-patch
Size: 9941 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20201110/bee6c4a8/attachment.bin>


More information about the lldb-commits mailing list