[all-commits] [llvm/llvm-project] 300e39: [lldb/crashlog] Adapt raw text crashlog exception ...

Med Ismail Bennani via All-commits all-commits at lists.llvm.org
Thu Aug 11 22:29:22 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 300e393092e39c8efc76f807671b11309fb4b98e
      https://github.com/llvm/llvm-project/commit/300e393092e39c8efc76f807671b11309fb4b98e
  Author: Med Ismail Bennani <medismail.bennani at gmail.com>
  Date:   2022-08-11 (Thu, 11 Aug 2022)

  Changed paths:
    M lldb/examples/python/crashlog.py

  Log Message:
  -----------
  [lldb/crashlog] Adapt raw text crashlog exception to json format

This patch parses CrashLog exception data from the raw
text format and adapts it to the new JSON format.

This is necessary for feature parity between the 2 formats.

Differential Revision: https://reviews.llvm.org/D131719

Signed-off-by: Med Ismail Bennani <medismail.bennani at gmail.com>


  Commit: 603f44acc6ec31a274c554f0647630c10a114a6b
      https://github.com/llvm/llvm-project/commit/603f44acc6ec31a274c554f0647630c10a114a6b
  Author: Med Ismail Bennani <medismail.bennani at gmail.com>
  Date:   2022-08-11 (Thu, 11 Aug 2022)

  Changed paths:
    M lldb/test/Shell/ScriptInterpreter/Python/Crashlog/scripted_crashlog_json.test
    M lldb/test/Shell/ScriptInterpreter/Python/Crashlog/skipped_status_interactive_crashlog.test

  Log Message:
  -----------
  [lldb/test] Fix interactive crashlog test failure (NFC)

This patch removes the system library names and mangled symbol from
the expected output for the interactive crashlog tests.

Signed-off-by: Med Ismail Bennani <medismail.bennani at gmail.com>


  Commit: edc77353daa707712fc92a31edb5b27ad103ba30
      https://github.com/llvm/llvm-project/commit/edc77353daa707712fc92a31edb5b27ad103ba30
  Author: Med Ismail Bennani <medismail.bennani at gmail.com>
  Date:   2022-08-11 (Thu, 11 Aug 2022)

  Changed paths:
    M lldb/examples/python/scripted_process/crashlog_scripted_process.py
    M lldb/source/Plugins/Process/Utility/StopInfoMachException.cpp
    M lldb/source/Plugins/Process/Utility/StopInfoMachException.h
    M lldb/source/Plugins/Process/scripted/ScriptedThread.cpp
    M lldb/test/Shell/ScriptInterpreter/Python/Crashlog/scripted_crashlog_json.test
    M lldb/test/Shell/ScriptInterpreter/Python/Crashlog/skipped_status_interactive_crashlog.test

  Log Message:
  -----------
  [lldb/crashlog] Improve exception reporting for interactive mode

This patch improve exception reporting when loading a crash report in a
scripted process. Now, we parse the `exception` dictionary from the
crash report use it the create a higher fidelity `MachException` stop info.

This patch also updates the test to reflect that change.

rdar://97096486

Differential Revision: https://reviews.llvm.org/D131086

Signed-off-by: Med Ismail Bennani <medismail.bennani at gmail.com>


  Commit: 6c58f12d07612a4d2bc9abdc5bb545cbb4810f0e
      https://github.com/llvm/llvm-project/commit/6c58f12d07612a4d2bc9abdc5bb545cbb4810f0e
  Author: Med Ismail Bennani <medismail.bennani at gmail.com>
  Date:   2022-08-11 (Thu, 11 Aug 2022)

  Changed paths:
    M lldb/source/Symbol/TypeList.cpp

  Log Message:
  -----------
  [lldb/Symbol] Fix null-deref in TypeList::Dump

This patch should just a crash caused by a null pointer dereferencing
when dumping a type. It makes sure that the pointer is valid.

rdar://97455134

Signed-off-by: Med Ismail Bennani <medismail.bennani at gmail.com>


Compare: https://github.com/llvm/llvm-project/compare/4a738ee8220e...6c58f12d0761


More information about the All-commits mailing list