LLDB mainline
Classes | Functions
StopInfoMachException.cpp File Reference
#include "StopInfoMachException.h"
#include "lldb/lldb-forward.h"
#include "lldb/Breakpoint/Watchpoint.h"
#include "lldb/Symbol/Symbol.h"
#include "lldb/Target/ABI.h"
#include "lldb/Target/DynamicLoader.h"
#include "lldb/Target/ExecutionContext.h"
#include "lldb/Target/Process.h"
#include "lldb/Target/RegisterContext.h"
#include "lldb/Target/Target.h"
#include "lldb/Target/Thread.h"
#include "lldb/Target/ThreadPlan.h"
#include "lldb/Target/UnixSignals.h"
#include "lldb/Utility/LLDBLog.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/StreamString.h"
#include <optional>

Go to the source code of this file.

Classes

struct  PtrauthInstructionInfo
 Information about a pointer-authentication related instruction. More...
 

Functions

static std::optional< PtrauthInstructionInfoGetPtrauthInstructionInfo (Target &target, const ArchSpec &arch, const Address &at_addr)
 Get any pointer-authentication related information about the instruction at address at_addr.
 
static void DescribeAddressBriefly (Stream &strm, const Address &addr, Target &target)
 Describe the load address of addr using the format filename:line:col.
 
static StopInfoSP GetStopInfoForHardwareBP (Thread &thread, Target *target, uint32_t exc_data_count, uint64_t exc_sub_code, uint64_t exc_sub_sub_code)
 

Function Documentation

◆ DescribeAddressBriefly()

static void DescribeAddressBriefly ( Stream strm,
const Address addr,
Target target 
)
static

◆ GetPtrauthInstructionInfo()

static std::optional< PtrauthInstructionInfo > GetPtrauthInstructionInfo ( Target target,
const ArchSpec arch,
const Address at_addr 
)
static

Get any pointer-authentication related information about the instruction at address at_addr.

Definition at line 47 of file StopInfoMachException.cpp.

References lldb_private::Disassembler::DisassembleRange(), lldb_private::InstructionList::GetInstructionAtIndex(), and PtrauthInstructionInfo::IsAuthenticated.

Referenced by lldb_private::StopInfoMachException::DeterminePtrauthFailure().

◆ GetStopInfoForHardwareBP()

static StopInfoSP GetStopInfoForHardwareBP ( Thread thread,
Target target,
uint32_t  exc_data_count,
uint64_t  exc_sub_code,
uint64_t  exc_sub_sub_code 
)
static