diff options
Diffstat (limited to 'lldb/source/API')
-rw-r--r-- | lldb/source/API/SBInstruction.cpp | 4 | ||||
-rw-r--r-- | lldb/source/API/SBInstructionList.cpp | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lldb/source/API/SBInstruction.cpp b/lldb/source/API/SBInstruction.cpp index 48b2e7399ff..75683f600e8 100644 --- a/lldb/source/API/SBInstruction.cpp +++ b/lldb/source/API/SBInstruction.cpp @@ -89,7 +89,7 @@ SBInstruction::GetDescription (lldb::SBStream &s) { // Use the "ref()" instead of the "get()" accessor in case the SBStream // didn't have a stream already created, one will get created... - m_opaque_sp->Dump (&s.ref(), true, false, NULL, false); + m_opaque_sp->Dump (&s.ref(), 0, true, false, NULL, false); return true; } return false; @@ -104,6 +104,6 @@ SBInstruction::Print (FILE *out) if (m_opaque_sp) { StreamFile out_stream (out, false); - m_opaque_sp->Dump (&out_stream, true, false, NULL, false); + m_opaque_sp->Dump (&out_stream, 0, true, false, NULL, false); } } diff --git a/lldb/source/API/SBInstructionList.cpp b/lldb/source/API/SBInstructionList.cpp index 37c7f874e19..312922fd825 100644 --- a/lldb/source/API/SBInstructionList.cpp +++ b/lldb/source/API/SBInstructionList.cpp @@ -93,12 +93,13 @@ SBInstructionList::GetDescription (lldb::SBStream &description) // Call the ref() to make sure a stream is created if one deesn't // exist already inside description... Stream &sref = description.ref(); + const uint32_t max_opcode_byte_size = m_opaque_sp->GetInstructionList().GetMaxOpcocdeByteSize(); for (size_t i=0; i<num_instructions; ++i) { Instruction *inst = m_opaque_sp->GetInstructionList().GetInstructionAtIndex (i).get(); if (inst == NULL) break; - inst->Dump (&sref, true, false, NULL, false); + inst->Dump (&sref, max_opcode_byte_size, true, false, NULL, false); sref.EOL(); } return true; |