LLDB mainline
Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
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 69 of file SBInstruction.cpp.

References LLDB_INSTRUMENT_VA.

◆ SBInstruction() [2/3]

SBInstruction::SBInstruction ( const SBInstruction rhs)

Definition at line 75 of file SBInstruction.cpp.

References LLDB_INSTRUMENT_VA.

◆ ~SBInstruction()

SBInstruction::~SBInstruction ( )
default

◆ SBInstruction() [3/3]

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

Definition at line 71 of file SBInstruction.cpp.

Member Function Documentation

◆ CanSetBreakpoint()

bool SBInstruction::CanSetBreakpoint ( )

Definition at line 227 of file SBInstruction.cpp.

References GetOpaque(), and LLDB_INSTRUMENT_VA.

Referenced by lldb::SBInstructionList::GetInstructionsCount().

◆ DoesBranch()

bool SBInstruction::DoesBranch ( )

Definition at line 209 of file SBInstruction.cpp.

References GetOpaque(), and LLDB_INSTRUMENT_VA.

◆ DumpEmulation()

bool SBInstruction::DumpEmulation ( const char *  triple)

Definition at line 328 of file SBInstruction.cpp.

References GetOpaque(), and LLDB_INSTRUMENT_VA.

◆ EmulateWithFrame()

bool SBInstruction::EmulateWithFrame ( lldb::SBFrame frame,
uint32_t  evaluate_options 
)

◆ GetAddress()

SBAddress SBInstruction::GetAddress ( )

◆ GetByteSize()

size_t SBInstruction::GetByteSize ( )

Definition at line 186 of file SBInstruction.cpp.

References GetOpaque(), and LLDB_INSTRUMENT_VA.

◆ GetComment()

const char * SBInstruction::GetComment ( lldb::SBTarget  target)

◆ GetControlFlowKind()

lldb::InstructionControlFlowKind SBInstruction::GetControlFlowKind ( lldb::SBTarget  target)

◆ GetData()

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

Definition at line 195 of file SBInstruction.cpp.

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

◆ GetDescription()

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

◆ GetMnemonic()

const char * SBInstruction::GetMnemonic ( lldb::SBTarget  target)

◆ GetOpaque()

lldb::InstructionSP SBInstruction::GetOpaque ( )
protected

◆ GetOperands()

const char * SBInstruction::GetOperands ( lldb::SBTarget  target)

◆ HasDelaySlot()

bool SBInstruction::HasDelaySlot ( )

Definition at line 218 of file SBInstruction.cpp.

References GetOpaque(), and LLDB_INSTRUMENT_VA.

◆ IsValid()

bool SBInstruction::IsValid ( )

Definition at line 90 of file SBInstruction.cpp.

References LLDB_INSTRUMENT_VA.

◆ operator bool()

SBInstruction::operator bool ( ) const
explicit

Definition at line 94 of file SBInstruction.cpp.

References LLDB_INSTRUMENT_VA.

◆ operator=()

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

Definition at line 80 of file SBInstruction.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ Print() [1/3]

void SBInstruction::Print ( FILE *  out)

Definition at line 270 of file SBInstruction.cpp.

References LLDB_INSTRUMENT_VA, and Print().

Referenced by Print().

◆ Print() [2/3]

void SBInstruction::Print ( FileSP  BORROWED)

◆ Print() [3/3]

void SBInstruction::Print ( SBFile  out)

Definition at line 276 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

Definition at line 243 of file SBInstruction.cpp.

References m_opaque_sp.

Referenced by lldb::SBInstructionList::GetInstructionAtIndex(), and TestEmulation().

◆ TestEmulation()

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

Friends And Related Function Documentation

◆ SBInstructionList

friend class SBInstructionList
friend

Definition at line 77 of file SBInstruction.h.

Member Data Documentation

◆ m_opaque_sp

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

Definition at line 88 of file SBInstruction.h.

Referenced by GetOpaque(), operator=(), SetOpaque(), and TestEmulation().


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