9#ifndef LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_STOPINFOMACHEXCEPTION_H
10#define LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_STOPINFOMACHEXCEPTION_H
19#include <mach/exception.h>
33 uint32_t exc_data_count, uint64_t exc_code,
47 struct MachException {
48 static const char *Name(exception_type_t exc_type);
49 static std::optional<exception_type_t> ExceptionCode(
const char *name);
57 Thread &thread, uint32_t exc_type, uint32_t exc_data_count,
58 uint64_t exc_code, uint64_t exc_sub_code, uint64_t exc_sub_sub_code,
59 bool pc_already_adjusted =
true,
bool adjust_pc_if_needed =
false);
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
const char * GetDescription() override
StopInfoMachException(Thread &thread, uint32_t exc_type, uint32_t exc_data_count, uint64_t exc_code, uint64_t exc_subcode)
bool DeterminePtrauthFailure(ExecutionContext &exe_ctx)
Determine the pointer-authentication related failure that caused this exception.
lldb::StopReason GetStopReason() const override
uint32_t m_exc_data_count
static lldb::StopInfoSP CreateStopReasonWithMachException(Thread &thread, uint32_t exc_type, uint32_t exc_data_count, uint64_t exc_code, uint64_t exc_sub_code, uint64_t exc_sub_sub_code, bool pc_already_adjusted=true, bool adjust_pc_if_needed=false)
~StopInfoMachException() override=default
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::StopInfo > StopInfoSP
StopReason
Thread stop reasons.