LLDB  mainline
Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
lldb::SBInstruction Class Reference

#include <SBInstruction.h>

Collaboration diagram for lldb::SBInstruction:
Collaboration graph
[legend]

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::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 out)
 
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_RECORD_CONSTRUCTOR_NO_ARGS.

◆ SBInstruction() [2/3]

SBInstruction::SBInstruction ( const SBInstruction rhs)

Definition at line 77 of file SBInstruction.cpp.

References LLDB_RECORD_CONSTRUCTOR.

◆ ~SBInstruction()

SBInstruction::~SBInstruction ( )
default

◆ SBInstruction() [3/3]

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

Definition at line 73 of file SBInstruction.cpp.

Member Function Documentation

◆ CanSetBreakpoint()

bool SBInstruction::CanSetBreakpoint ( )

◆ DoesBranch()

bool SBInstruction::DoesBranch ( )

Definition at line 198 of file SBInstruction.cpp.

References GetOpaque(), and LLDB_RECORD_METHOD_NO_ARGS.

◆ DumpEmulation()

bool SBInstruction::DumpEmulation ( const char *  triple)

Definition at line 318 of file SBInstruction.cpp.

References GetOpaque(), and LLDB_RECORD_METHOD.

◆ EmulateWithFrame()

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

◆ GetAddress()

SBAddress SBInstruction::GetAddress ( )

◆ GetByteSize()

size_t SBInstruction::GetByteSize ( )

Definition at line 174 of file SBInstruction.cpp.

References GetOpaque(), and LLDB_RECORD_METHOD_NO_ARGS.

◆ GetComment()

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

◆ GetData()

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

◆ 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 207 of file SBInstruction.cpp.

References GetOpaque(), and LLDB_RECORD_METHOD_NO_ARGS.

◆ IsValid()

bool SBInstruction::IsValid ( )

Definition at line 94 of file SBInstruction.cpp.

References LLDB_RECORD_METHOD_NO_ARGS.

◆ operator bool()

SBInstruction::operator bool ( ) const
explicit

Definition at line 98 of file SBInstruction.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ operator=()

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

Definition at line 82 of file SBInstruction.cpp.

References LLDB_RECORD_METHOD, LLDB_RECORD_RESULT, and m_opaque_sp.

◆ Print() [1/3]

void SBInstruction::Print ( FILE *  out)

Definition at line 259 of file SBInstruction.cpp.

References LLDB_RECORD_METHOD.

Referenced by Print().

◆ Print() [2/3]

void SBInstruction::Print ( FileSP  out)

◆ Print() [3/3]

void SBInstruction::Print ( SBFile  out)

Definition at line 265 of file SBInstruction.cpp.

References LLDB_RECORD_METHOD, 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 232 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 73 of file SBInstruction.h.

Member Data Documentation

◆ m_opaque_sp

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

Definition at line 84 of file SBInstruction.h.

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


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