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

Public Member Functions

 IntelPTError (int libipt_error_code, lldb::addr_t address=LLDB_INVALID_ADDRESS)
std::error_code convertToErrorCode () const override
int GetLibiptErrorCode () const
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 
[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 22 of file DecodedThread.cpp.

Member Function Documentation

◆ convertToErrorCode()

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

Definition at line 42 of file DecodedThread.h.

◆ GetLibiptErrorCode()

int lldb_private::trace_intel_pt::IntelPTError::GetLibiptErrorCode ( ) const

Definition at line 46 of file DecodedThread.h.

References m_libipt_error_code.

◆ log()

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

Member Data Documentation

◆ ID

char IntelPTError::ID

Definition at line 28 of file DecodedThread.h.

◆ m_address

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

Definition at line 52 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 51 of file DecodedThread.h.

Referenced by GetLibiptErrorCode(), and log().

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