LLDB  mainline
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
lldb_private::trace_intel_pt::IntelPTError Class Reference

Class for representing a libipt decoding error. More...

#include <DecodedThread.h>

Inheritance diagram for lldb_private::trace_intel_pt::IntelPTError:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::trace_intel_pt::IntelPTError:
Collaboration graph
[legend]

Public Member Functions

 IntelPTError (int libipt_error_code, lldb::addr_t address=LLDB_INVALID_ADDRESS)
 
std::error_code convertToErrorCode () const override
 
void log (llvm::raw_ostream &OS) const override
 

Static Public Attributes

static char ID
 

Private Attributes

int m_libipt_error_code
 
lldb::addr_t m_address
 

Detailed Description

Class for representing a libipt decoding error.

Definition at line 26 of file DecodedThread.h.

Constructor & Destructor Documentation

◆ IntelPTError()

IntelPTError::IntelPTError ( int  libipt_error_code,
lldb::addr_t  address = LLDB_INVALID_ADDRESS 
)
Parameters
[in]libipt_error_codeNegative number returned by libipt when decoding the trace and signaling errors.
[in]addressOptional instruction address. When decoding an individual instruction, its address might be available in the pt_insn object, and should be passed to this constructor. Other errors don't have an associated address.

Definition at line 24 of file DecodedThread.cpp.

Member Function Documentation

◆ convertToErrorCode()

std::error_code lldb_private::trace_intel_pt::IntelPTError::convertToErrorCode ( ) const
inlineoverride

Definition at line 42 of file DecodedThread.h.

◆ log()

void IntelPTError::log ( llvm::raw_ostream &  OS) const
override

Definition at line 29 of file DecodedThread.cpp.

References LLDB_INVALID_ADDRESS, m_address, and m_libipt_error_code.

Member Data Documentation

◆ ID

char IntelPTError::ID
static

Definition at line 28 of file DecodedThread.h.

◆ m_address

lldb::addr_t lldb_private::trace_intel_pt::IntelPTError::m_address
private

Definition at line 50 of file DecodedThread.h.

Referenced by log().

◆ m_libipt_error_code

int lldb_private::trace_intel_pt::IntelPTError::m_libipt_error_code
private

Definition at line 49 of file DecodedThread.h.

Referenced by log().


The documentation for this class was generated from the following files: