diff options
Diffstat (limited to 'lldb/source/Target/ThreadPlanTracer.cpp')
-rw-r--r-- | lldb/source/Target/ThreadPlanTracer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Target/ThreadPlanTracer.cpp b/lldb/source/Target/ThreadPlanTracer.cpp index 578a160251e..fe95b9a5a9a 100644 --- a/lldb/source/Target/ThreadPlanTracer.cpp +++ b/lldb/source/Target/ThreadPlanTracer.cpp @@ -209,11 +209,13 @@ ThreadPlanAssemblyTracer::Log () m_disassembler->DecodeInstructions (Address (NULL, pc), extractor, 0, 1, false); InstructionList &instruction_list = m_disassembler->GetInstructionList(); - + const uint32_t max_opcode_byte_size = instruction_list.GetMaxOpcocdeByteSize(); + if (instruction_list.GetSize()) { Instruction *instruction = instruction_list.GetInstructionAtIndex(0).get(); instruction->Dump (&desc, + max_opcode_byte_size, false, false, NULL, |