9#ifndef LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_STOPINFOMACHEXCEPTION_H
10#define LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_STOPINFOMACHEXCEPTION_H
20#include <mach/exception.h>
36 uint32_t exc_data_count, uint64_t exc_code,
38 bool not_stepping_but_got_singlestep_exception)
42 not_stepping_but_got_singlestep_exception) {}
83 struct MachException {
84 static const char *Name(exception_type_t exc_type);
85 static std::optional<exception_type_t> ExceptionCode(
const char *name);
93 Thread &thread, uint32_t exc_type, uint32_t exc_data_count,
94 uint64_t exc_code, uint64_t exc_sub_code, uint64_t exc_sub_sub_code,
95 bool pc_already_adjusted =
true,
bool adjust_pc_if_needed =
false);
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
uint32_t GetStopReasonDataCount() const override
const char * GetDescription() override
bool DeterminePtrauthFailure(ExecutionContext &exe_ctx)
Determine the pointer-authentication related failure that caused this exception.
bool WasContinueInterrupted(Thread &thread) override
A Continue operation can result in a false stop event before any execution has happened.
std::optional< lldb::addr_t > GetTagFaultAddress() const
lldb::StopReason GetStopReason() const override
uint64_t GetStopReasonDataAtIndex(uint32_t idx) override
uint32_t m_exc_data_count
bool m_not_stepping_but_got_singlestep_exception
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
bool DetermineTagMismatch()
StopInfoMachException(Thread &thread, uint32_t exc_type, uint32_t exc_data_count, uint64_t exc_code, uint64_t exc_subcode, bool not_stepping_but_got_singlestep_exception)
uint64_t GetValue() const
StopInfo(Thread &thread, uint64_t value)
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::StopInfo > StopInfoSP
StopReason
Thread stop reasons.