LLDB mainline
|
#include <SBInstruction.h>
Public Member Functions | |
SBInstruction () | |
SBInstruction (const SBInstruction &rhs) | |
const SBInstruction & | operator= (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< InstructionImpl > | m_opaque_sp |
Friends | |
class | SBInstructionList |
Definition at line 24 of file SBInstruction.h.
SBInstruction::SBInstruction | ( | ) |
Definition at line 68 of file SBInstruction.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by operator=(), SBInstruction(), and SBInstructionList.
SBInstruction::SBInstruction | ( | const SBInstruction & | rhs | ) |
Definition at line 74 of file SBInstruction.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_sp, and SBInstruction().
|
default |
|
protected |
Definition at line 70 of file SBInstruction.cpp.
References m_opaque_sp.
bool SBInstruction::CanSetBreakpoint | ( | ) |
Definition at line 226 of file SBInstruction.cpp.
References GetOpaque(), and LLDB_INSTRUMENT_VA.
Referenced by lldb::SBInstructionList::GetInstructionsCount(), and ~SBInstruction().
bool SBInstruction::DoesBranch | ( | ) |
Definition at line 208 of file SBInstruction.cpp.
References GetOpaque(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBInstruction().
bool SBInstruction::DumpEmulation | ( | const char * | triple | ) |
Definition at line 327 of file SBInstruction.cpp.
References GetOpaque(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBInstruction().
bool SBInstruction::EmulateWithFrame | ( | lldb::SBFrame & | frame, |
uint32_t | evaluate_options ) |
Definition at line 302 of file SBInstruction.cpp.
References lldb_private::Target::GetArchitecture(), lldb::SBFrame::GetFrameSP(), GetOpaque(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, lldb_private::EmulateInstruction::ReadMemoryFrame(), lldb_private::EmulateInstruction::ReadRegisterFrame(), lldb_private::EmulateInstruction::WriteMemoryFrame(), and lldb_private::EmulateInstruction::WriteRegisterFrame().
Referenced by ~SBInstruction().
SBAddress SBInstruction::GetAddress | ( | ) |
Definition at line 99 of file SBInstruction.cpp.
References GetOpaque(), LLDB_INSTRUMENT_VA, and lldb::SBAddress::SetAddress().
Referenced by lldb::SBInstructionList::GetInstructionsCount(), and ~SBInstruction().
size_t SBInstruction::GetByteSize | ( | ) |
Definition at line 185 of file SBInstruction.cpp.
References GetOpaque(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBInstruction().
const char * SBInstruction::GetComment | ( | lldb::SBTarget | target | ) |
Definition at line 147 of file SBInstruction.cpp.
References lldb_private::ConstString::GetCString(), GetOpaque(), lldb::SBTarget::GetSP(), LLDB_INSTRUMENT_VA, and lldb_private::ExecutionContext::SetProcessSP().
Referenced by ~SBInstruction().
lldb::InstructionControlFlowKind SBInstruction::GetControlFlowKind | ( | lldb::SBTarget | target | ) |
Definition at line 166 of file SBInstruction.cpp.
References lldb::eInstructionControlFlowKindUnknown, GetOpaque(), lldb::SBTarget::GetSP(), LLDB_INSTRUMENT_VA, and lldb_private::ExecutionContext::SetProcessSP().
Referenced by ~SBInstruction().
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().
bool SBInstruction::GetDescription | ( | lldb::SBStream & | description | ) |
Definition at line 247 of file SBInstruction.cpp.
References lldb_private::Address::GetModule(), GetOpaque(), LLDB_INSTRUMENT_VA, lldb_private::FormatEntity::Parse(), and lldb::SBStream::ref().
Referenced by ~SBInstruction().
const char * SBInstruction::GetMnemonic | ( | lldb::SBTarget | target | ) |
Definition at line 109 of file SBInstruction.cpp.
References lldb_private::ConstString::GetCString(), GetOpaque(), lldb::SBTarget::GetSP(), LLDB_INSTRUMENT_VA, and lldb_private::ExecutionContext::SetProcessSP().
Referenced by ~SBInstruction().
|
protected |
Definition at line 235 of file SBInstruction.cpp.
References m_opaque_sp.
Referenced by CanSetBreakpoint(), DoesBranch(), DumpEmulation(), EmulateWithFrame(), GetAddress(), GetByteSize(), GetComment(), GetControlFlowKind(), GetData(), GetDescription(), GetMnemonic(), GetOperands(), HasDelaySlot(), Print(), SBInstructionList, and TestEmulation().
const char * SBInstruction::GetOperands | ( | lldb::SBTarget | target | ) |
Definition at line 128 of file SBInstruction.cpp.
References lldb_private::ConstString::GetCString(), GetOpaque(), lldb::SBTarget::GetSP(), LLDB_INSTRUMENT_VA, and lldb_private::ExecutionContext::SetProcessSP().
Referenced by ~SBInstruction().
bool SBInstruction::HasDelaySlot | ( | ) |
Definition at line 217 of file SBInstruction.cpp.
References GetOpaque(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBInstruction().
bool SBInstruction::IsValid | ( | ) |
Definition at line 89 of file SBInstruction.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by ~SBInstruction().
|
explicit |
Definition at line 93 of file SBInstruction.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
const SBInstruction & SBInstruction::operator= | ( | const SBInstruction & | rhs | ) |
Definition at line 79 of file SBInstruction.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_sp, and SBInstruction().
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().
void SBInstruction::Print | ( | FileSP | BORROWED | ) |
Definition at line 280 of file SBInstruction.cpp.
References lldb_private::Address::GetModule(), GetOpaque(), LLDB_INSTRUMENT_VA, and lldb_private::FormatEntity::Parse().
void SBInstruction::Print | ( | SBFile | out | ) |
Definition at line 275 of file SBInstruction.cpp.
References LLDB_INSTRUMENT_VA, lldb::SBFile::m_opaque_sp, and Print().
|
protected |
Definition at line 242 of file SBInstruction.cpp.
References m_opaque_sp.
Referenced by lldb::SBInstructionList::GetInstructionAtIndex(), SBInstructionList, and 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().
|
friend |
Definition at line 77 of file SBInstruction.h.
References GetOpaque(), SBInstruction(), SBInstructionList, and SetOpaque().
Referenced by SBInstructionList.
|
private |
Definition at line 88 of file SBInstruction.h.
Referenced by GetOpaque(), operator bool(), operator=(), SBInstruction(), SBInstruction(), SetOpaque(), and TestEmulation().