[Lldb-commits] [PATCH] D109795: [MachCore] Report arm64 thread exception state

Vedant Kumar via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 14 17:01:17 PDT 2021


vsk created this revision.
vsk added reviewers: jasonmolenda, jingham, JDevlieghere.
Herald added subscribers: zzheng, omjavaid, pengfei, kristof.beyls.
vsk requested review of this revision.
Herald added a project: LLDB.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D109795

Files:
  lldb/include/lldb/Target/AppleArm64ExceptionClass.def
  lldb/include/lldb/Target/AppleArm64ExceptionClass.h
  lldb/include/lldb/module.modulemap
  lldb/source/Plugins/Process/mach-core/ThreadMachCore.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109795.372590.patch
Type: text/x-patch
Size: 6328 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210915/60603d7b/attachment-0001.bin>


More information about the lldb-commits mailing list