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
Collaboration diagram for lldb_private::trace_intel_pt::IntelPTError:
Collaboration graph

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 36 of file DecodedThread.h.

Constructor & Destructor Documentation

◆ IntelPTError()

IntelPTError::IntelPTError ( int  libipt_error_code,
lldb::addr_t  address = LLDB_INVALID_ADDRESS 
[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 36 of file DecodedThread.cpp.

Member Function Documentation

◆ convertToErrorCode()

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

Definition at line 52 of file DecodedThread.h.

◆ log()

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

Member Data Documentation

◆ ID

char IntelPTError::ID

Definition at line 38 of file DecodedThread.h.

◆ m_address

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

Definition at line 60 of file DecodedThread.h.

Referenced by log().

◆ m_libipt_error_code

int lldb_private::trace_intel_pt::IntelPTError::m_libipt_error_code

Definition at line 59 of file DecodedThread.h.

Referenced by log().

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