[all-commits] [llvm/llvm-project] 7eb677: [MachCore] Report arm64 thread exception state

Vedant Kumar via All-commits all-commits at lists.llvm.org
Thu Sep 16 13:35:27 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7eb67748f9d7186419d678e807c01fc2a3811a80
      https://github.com/llvm/llvm-project/commit/7eb67748f9d7186419d678e807c01fc2a3811a80
  Author: Vedant Kumar <vsk at apple.com>
  Date:   2021-09-16 (Thu, 16 Sep 2021)

  Changed paths:
    A lldb/include/lldb/Target/AppleArm64ExceptionClass.def
    A lldb/include/lldb/Target/AppleArm64ExceptionClass.h
    M lldb/include/lldb/module.modulemap
    M lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
    M lldb/source/Plugins/Process/mach-core/ThreadMachCore.cpp
    A lldb/test/API/macosx/corefile-exception-reason/Makefile
    A lldb/test/API/macosx/corefile-exception-reason/TestCorefileExceptionReason.py
    A lldb/test/API/macosx/corefile-exception-reason/main.cpp

  Log Message:
  -----------
  [MachCore] Report arm64 thread exception state

A MachO userspace corefile may contain LC_THREAD commands which specify
thread exception state.

For arm64* only (for now), report a human-readable version of this state
as the thread stop reason, instead of 'SIGSTOP'.

As a follow-up, similar functionality can be implemented for x86 cores
by translating the trapno/err exception registers.

rdar://82898146

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




More information about the All-commits mailing list