[Lldb-commits] [lldb] r299276 - DisassembleRange can return an empty DisassemblerSP
Jim Ingham via lldb-commits
lldb-commits at lists.llvm.org
Fri Mar 31 15:39:55 PDT 2017
Author: jingham
Date: Fri Mar 31 17:39:55 2017
New Revision: 299276
URL: http://llvm.org/viewvc/llvm-project?rev=299276&view=rev
Log:
DisassembleRange can return an empty DisassemblerSP
check for it.
<rdar://problem/31379799>
Modified:
lldb/trunk/source/Target/StackFrame.cpp
Modified: lldb/trunk/source/Target/StackFrame.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/StackFrame.cpp?rev=299276&r1=299275&r2=299276&view=diff
==============================================================================
--- lldb/trunk/source/Target/StackFrame.cpp (original)
+++ lldb/trunk/source/Target/StackFrame.cpp Fri Mar 31 17:39:55 2017
@@ -1314,7 +1314,7 @@ lldb::ValueObjectSP StackFrame::GuessVal
DisassemblerSP disassembler_sp = Disassembler::DisassembleRange(
target_arch, plugin_name, flavor, exe_ctx, pc_range, prefer_file_cache);
- if (!disassembler_sp->GetInstructionList().GetSize()) {
+ if (!disassembler_sp || !disassembler_sp->GetInstructionList().GetSize()) {
return ValueObjectSP();
}
More information about the lldb-commits
mailing list