27 : m_opaque_sp(rhs.m_opaque_sp) {
44 return this->
operator bool();
46 SBInstructionList::operator bool()
const {
49 return m_opaque_sp.get() !=
nullptr;
67 m_opaque_sp->GetInstructionList().GetInstructionAtIndex(idx));
73 bool canSetBreakpoint) {
76 size_t num_instructions =
GetSize();
79 size_t lower_index = 0;
80 size_t upper_index = 0;
81 size_t instructions_to_skip = 0;
82 for (i = 0; i < num_instructions; ++i) {
90 for (i = lower_index; i <= upper_index; ++i) {
93 ++instructions_to_skip;
95 return upper_index - lower_index - instructions_to_skip;
130 if (!out_sp || !out_sp->IsValid())
144 size_t num_instructions =
GetSize();
145 if (num_instructions) {
148 const uint32_t max_opcode_byte_size =
149 m_opaque_sp->GetInstructionList().GetMaxOpcocdeByteSize();
151 FormatEntity::Parse(
"${addr}: ", format);
154 for (
size_t i = 0; i < num_instructions; ++i) {
156 m_opaque_sp->GetInstructionList().GetInstructionAtIndex(i).get();
164 module_sp->ResolveSymbolContextForAddress(
165 addr, eSymbolContextEverything, sc);
168 inst->
Dump(&sref, max_opcode_byte_size,
true,
false,
169 false,
nullptr, &sc, &prev_sc,
184 for (
size_t i = 0; i < len; ++i) {