[all-commits] [llvm/llvm-project] c7cbf3: [crashlog] Implement parser for JSON encoded crash...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Mon Nov 16 13:50:56 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c7cbf32f5770c5eec2a2dd6eb7cf3153e654ed08
      https://github.com/llvm/llvm-project/commit/c7cbf32f5770c5eec2a2dd6eb7cf3153e654ed08
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-11-16 (Mon, 16 Nov 2020)

  Changed paths:
    M lldb/examples/python/crashlog.py
    A lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/Assertion.check
    A lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/a.out.crash
    A lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/a.out.ips
    A lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/test.c
    R lldb/test/Shell/ScriptInterpreter/Python/Crashlog/crashlog.test
    A lldb/test/Shell/ScriptInterpreter/Python/Crashlog/json.test
    A lldb/test/Shell/ScriptInterpreter/Python/Crashlog/parser_json.test
    A lldb/test/Shell/ScriptInterpreter/Python/Crashlog/parser_text.test
    A lldb/test/Shell/ScriptInterpreter/Python/Crashlog/patch-crashlog.py
    A lldb/test/Shell/ScriptInterpreter/Python/Crashlog/text.test

  Log Message:
  -----------
  [crashlog] Implement parser for JSON encoded crashlogs

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.

Differential revision: https://reviews.llvm.org/D91130




More information about the All-commits mailing list