[all-commits] [llvm/llvm-project] b91306: [lldb] Support missing threadState in JSON crashlogs

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Thu Oct 7 15:54:05 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b913065bf470bcaf1ee8ff8b6a647b877110a4ba
      https://github.com/llvm/llvm-project/commit/b913065bf470bcaf1ee8ff8b6a647b877110a4ba
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2021-10-07 (Thu, 07 Oct 2021)

  Changed paths:
    M lldb/examples/python/crashlog.py
    A lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/no_threadState.ips
    A lldb/test/Shell/ScriptInterpreter/Python/Crashlog/no_threadState.test

  Log Message:
  -----------
  [lldb] Support missing threadState in JSON crashlogs

Gracefully deal with JSON crashlogs that don't have thread state
available and print an error saying as much: "No thread state (register
information) available".

rdar://83955858

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


  Commit: b225c5f7861c7f99de3d52dc1ed23e358c5cce36
      https://github.com/llvm/llvm-project/commit/b225c5f7861c7f99de3d52dc1ed23e358c5cce36
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2021-10-07 (Thu, 07 Oct 2021)

  Changed paths:
    M lldb/examples/python/crashlog.py
    M lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/a.out.ips
    M lldb/test/Shell/ScriptInterpreter/Python/Crashlog/json.test

  Log Message:
  -----------
  [lldb] Parse and display reporting errors from JSON crashlogs

JSON crashlogs have an optional field named reportNotes that contains
any potential errors encountered by the crash reporter when generating
the crashlog. Parse and display them in LLDB.

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


Compare: https://github.com/llvm/llvm-project/compare/690da88a9585...b225c5f7861c


More information about the All-commits mailing list