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 69 of file SBInstruction.cpp.
References LLDB_INSTRUMENT_VA.
SBInstruction::SBInstruction | ( | const SBInstruction & | rhs | ) |
Definition at line 75 of file SBInstruction.cpp.
References LLDB_INSTRUMENT_VA.
|
default |
|
protected |
Definition at line 71 of file SBInstruction.cpp.
bool SBInstruction::CanSetBreakpoint | ( | ) |
Definition at line 227 of file SBInstruction.cpp.
References GetOpaque(), and LLDB_INSTRUMENT_VA.
Referenced by lldb::SBInstructionList::GetInstructionsCount().
bool SBInstruction::DoesBranch | ( | ) |
Definition at line 209 of file SBInstruction.cpp.
References GetOpaque(), and LLDB_INSTRUMENT_VA.
bool SBInstruction::DumpEmulation | ( | const char * | triple | ) |
Definition at line 328 of file SBInstruction.cpp.
References GetOpaque(), and LLDB_INSTRUMENT_VA.
bool SBInstruction::EmulateWithFrame | ( | lldb::SBFrame & | frame, |
uint32_t | evaluate_options | ||
) |
Definition at line 303 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().
SBAddress SBInstruction::GetAddress | ( | ) |
Definition at line 100 of file SBInstruction.cpp.
References GetOpaque(), LLDB_INSTRUMENT_VA, and lldb::SBAddress::SetAddress().
Referenced by lldb::SBInstructionList::GetInstructionsCount().
size_t SBInstruction::GetByteSize | ( | ) |
Definition at line 186 of file SBInstruction.cpp.
References GetOpaque(), and LLDB_INSTRUMENT_VA.
const char * SBInstruction::GetComment | ( | lldb::SBTarget | target | ) |
Definition at line 148 of file SBInstruction.cpp.
References lldb_private::ConstString::GetCString(), GetOpaque(), lldb::SBTarget::GetSP(), LLDB_INSTRUMENT_VA, and lldb_private::ExecutionContext::SetProcessSP().
lldb::InstructionControlFlowKind SBInstruction::GetControlFlowKind | ( | lldb::SBTarget | target | ) |
Definition at line 167 of file SBInstruction.cpp.
References lldb::eInstructionControlFlowKindUnknown, GetOpaque(), lldb::SBTarget::GetSP(), LLDB_INSTRUMENT_VA, and lldb_private::ExecutionContext::SetProcessSP().
SBData SBInstruction::GetData | ( | lldb::SBTarget | target | ) |
Definition at line 195 of file SBInstruction.cpp.
References GetOpaque(), LLDB_INSTRUMENT_VA, and lldb::SBData::SetOpaque().
bool SBInstruction::GetDescription | ( | lldb::SBStream & | description | ) |
Definition at line 248 of file SBInstruction.cpp.
References lldb_private::Address::GetModule(), GetOpaque(), LLDB_INSTRUMENT_VA, lldb_private::FormatEntity::Parse(), and lldb::SBStream::ref().
const char * SBInstruction::GetMnemonic | ( | lldb::SBTarget | target | ) |
Definition at line 110 of file SBInstruction.cpp.
References lldb_private::ConstString::GetCString(), GetOpaque(), lldb::SBTarget::GetSP(), LLDB_INSTRUMENT_VA, and lldb_private::ExecutionContext::SetProcessSP().
|
protected |
Definition at line 236 of file SBInstruction.cpp.
References m_opaque_sp.
Referenced by CanSetBreakpoint(), DoesBranch(), DumpEmulation(), EmulateWithFrame(), GetAddress(), GetByteSize(), GetComment(), GetControlFlowKind(), GetData(), GetDescription(), GetMnemonic(), GetOperands(), HasDelaySlot(), Print(), and TestEmulation().
const char * SBInstruction::GetOperands | ( | lldb::SBTarget | target | ) |
Definition at line 129 of file SBInstruction.cpp.
References lldb_private::ConstString::GetCString(), GetOpaque(), lldb::SBTarget::GetSP(), LLDB_INSTRUMENT_VA, and lldb_private::ExecutionContext::SetProcessSP().
bool SBInstruction::HasDelaySlot | ( | ) |
Definition at line 218 of file SBInstruction.cpp.
References GetOpaque(), and LLDB_INSTRUMENT_VA.
bool SBInstruction::IsValid | ( | ) |
Definition at line 90 of file SBInstruction.cpp.
References LLDB_INSTRUMENT_VA.
|
explicit |
Definition at line 94 of file SBInstruction.cpp.
References LLDB_INSTRUMENT_VA.
const SBInstruction & SBInstruction::operator= | ( | const SBInstruction & | rhs | ) |
Definition at line 80 of file SBInstruction.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
void SBInstruction::Print | ( | FILE * | out | ) |
Definition at line 270 of file SBInstruction.cpp.
References LLDB_INSTRUMENT_VA, and Print().
Referenced by Print().
void SBInstruction::Print | ( | FileSP | BORROWED | ) |
Definition at line 281 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 276 of file SBInstruction.cpp.
References LLDB_INSTRUMENT_VA, lldb::SBFile::m_opaque_sp, and Print().
|
protected |
Definition at line 243 of file SBInstruction.cpp.
References m_opaque_sp.
Referenced by lldb::SBInstructionList::GetInstructionAtIndex(), and TestEmulation().
bool SBInstruction::TestEmulation | ( | lldb::SBStream & | output_stream, |
const char * | test_file | ||
) |
Definition at line 338 of file SBInstruction.cpp.
References GetOpaque(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb::SBStream::ref(), and SetOpaque().
|
friend |
Definition at line 77 of file SBInstruction.h.
|
private |
Definition at line 88 of file SBInstruction.h.
Referenced by GetOpaque(), operator=(), SetOpaque(), and TestEmulation().