LLDB mainline
lldb::SBInstruction Class Reference

#include <SBInstruction.h>

Public Member Functions

 SBInstruction ()
 SBInstruction (const SBInstruction &rhs)
const SBInstructionoperator= (const SBInstruction &rhs)
 ~SBInstruction ()
 operator bool () const
bool IsValid ()
SBAddress GetAddress ()
const char * GetMnemonic (lldb::SBTarget target)
const char * GetOperands (lldb::SBTarget target)
const char * GetComment (lldb::SBTarget target)
lldb::InstructionControlFlowKind GetControlFlowKind (lldb::SBTarget target)
lldb::SBData GetData (lldb::SBTarget target)
size_t GetByteSize ()
bool DoesBranch ()
bool HasDelaySlot ()
bool CanSetBreakpoint ()
void Print (FILE *out)
void Print (SBFile out)
void Print (FileSP BORROWED)
bool GetDescription (lldb::SBStream &description)
bool EmulateWithFrame (lldb::SBFrame &frame, uint32_t evaluate_options)
bool DumpEmulation (const char *triple)
bool TestEmulation (lldb::SBStream &output_stream, const char *test_file)

Protected Member Functions

 SBInstruction (const lldb::DisassemblerSP &disasm_sp, const lldb::InstructionSP &inst_sp)
void SetOpaque (const lldb::DisassemblerSP &disasm_sp, const lldb::InstructionSP &inst_sp)
lldb::InstructionSP GetOpaque ()

Private Attributes

std::shared_ptr< InstructionImplm_opaque_sp

Friends

class SBInstructionList

Detailed Description

Definition at line 24 of file SBInstruction.h.

Constructor & Destructor Documentation

◆ SBInstruction() [1/3]

SBInstruction::SBInstruction ( )

Definition at line 68 of file SBInstruction.cpp.

References LLDB_INSTRUMENT_VA.

Referenced by operator=(), SBInstruction(), and SBInstructionList.

◆ SBInstruction() [2/3]

SBInstruction::SBInstruction ( const SBInstruction & rhs)

Definition at line 74 of file SBInstruction.cpp.

References LLDB_INSTRUMENT_VA, m_opaque_sp, and SBInstruction().

◆ ~SBInstruction()

◆ SBInstruction() [3/3]

SBInstruction::SBInstruction ( const lldb::DisassemblerSP & disasm_sp,
const lldb::InstructionSP & inst_sp )
protected

Definition at line 70 of file SBInstruction.cpp.

References m_opaque_sp.

Member Function Documentation

◆ CanSetBreakpoint()

bool SBInstruction::CanSetBreakpoint ( )

◆ DoesBranch()

bool SBInstruction::DoesBranch ( )

Definition at line 208 of file SBInstruction.cpp.

References GetOpaque(), and LLDB_INSTRUMENT_VA.

Referenced by ~SBInstruction().

◆ DumpEmulation()

bool SBInstruction::DumpEmulation ( const char * triple)

Definition at line 327 of file SBInstruction.cpp.

References GetOpaque(), and LLDB_INSTRUMENT_VA.

Referenced by ~SBInstruction().

◆ EmulateWithFrame()

◆ GetAddress()

SBAddress SBInstruction::GetAddress ( )

◆ GetByteSize()

size_t SBInstruction::GetByteSize ( )

Definition at line 185 of file SBInstruction.cpp.

References GetOpaque(), and LLDB_INSTRUMENT_VA.

Referenced by ~SBInstruction().

◆ GetComment()

◆ GetControlFlowKind()

◆ GetData()

SBData SBInstruction::GetData ( lldb::SBTarget target)

Definition at line 194 of file SBInstruction.cpp.

References GetOpaque(), LLDB_INSTRUMENT_VA, and lldb::SBData::SetOpaque().

Referenced by ~SBInstruction().

◆ GetDescription()

bool SBInstruction::GetDescription ( lldb::SBStream & description)

◆ GetMnemonic()

◆ GetOpaque()

◆ GetOperands()

◆ HasDelaySlot()

bool SBInstruction::HasDelaySlot ( )

Definition at line 217 of file SBInstruction.cpp.

References GetOpaque(), and LLDB_INSTRUMENT_VA.

Referenced by ~SBInstruction().

◆ IsValid()

bool SBInstruction::IsValid ( )

Definition at line 89 of file SBInstruction.cpp.

References LLDB_INSTRUMENT_VA.

Referenced by ~SBInstruction().

◆ operator bool()

SBInstruction::operator bool ( ) const
explicit

Definition at line 93 of file SBInstruction.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ operator=()

const SBInstruction & SBInstruction::operator= ( const SBInstruction & rhs)

Definition at line 79 of file SBInstruction.cpp.

References LLDB_INSTRUMENT_VA, m_opaque_sp, and SBInstruction().

◆ Print() [1/3]

void SBInstruction::Print ( FILE * out)

Definition at line 269 of file SBInstruction.cpp.

References LLDB_INSTRUMENT_VA, and Print().

Referenced by Print(), Print(), and ~SBInstruction().

◆ Print() [2/3]

void SBInstruction::Print ( FileSP BORROWED)

◆ Print() [3/3]

void SBInstruction::Print ( SBFile out)

Definition at line 275 of file SBInstruction.cpp.

References LLDB_INSTRUMENT_VA, lldb::SBFile::m_opaque_sp, and Print().

◆ SetOpaque()

void SBInstruction::SetOpaque ( const lldb::DisassemblerSP & disasm_sp,
const lldb::InstructionSP & inst_sp )
protected

◆ TestEmulation()

bool SBInstruction::TestEmulation ( lldb::SBStream & output_stream,
const char * test_file )

Definition at line 337 of file SBInstruction.cpp.

References GetOpaque(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb::SBStream::ref(), and SetOpaque().

Referenced by ~SBInstruction().

◆ SBInstructionList

friend class SBInstructionList
friend

Definition at line 77 of file SBInstruction.h.

References GetOpaque(), SBInstruction(), SBInstructionList, and SetOpaque().

Referenced by SBInstructionList.

Member Data Documentation

◆ m_opaque_sp

std::shared_ptr<InstructionImpl> lldb::SBInstruction::m_opaque_sp
private

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