[all-commits] [llvm/llvm-project] 3b14d8: [MachCore] Report arm64 thread exception state

Vedant Kumar via All-commits all-commits at lists.llvm.org
Fri Sep 17 16:45:57 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3b14d80ad4af303c9f7df189b8b7eee528d0ec8d
      https://github.com/llvm/llvm-project/commit/3b14d80ad4af303c9f7df189b8b7eee528d0ec8d
  Author: Vedant Kumar <vsk at apple.com>
  Date:   2021-09-17 (Fri, 17 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
    M lldb/test/API/functionalities/postmortem/mach-core/TestMachCore.py
    M lldb/test/API/functionalities/postmortem/mach-core/operating_system.py
    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