Author: jingham Date: Tue Mar 11 13:17:23 2014 New Revision: 203591 URL: http://llvm.org/viewvc/llvm-project?rev=203591&view=rev Log: After doing all the work to compute the target ValueObject we want to evaluate, make sure we actually got something before proceeding.
<rdar://problem/16282875> Modified: lldb/trunk/source/Core/Debugger.cpp Modified: lldb/trunk/source/Core/Debugger.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Debugger.cpp?rev=203591&r1=203590&r2=203591&view=diff ============================================================================== --- lldb/trunk/source/Core/Debugger.cpp (original) +++ lldb/trunk/source/Core/Debugger.cpp Tue Mar 11 13:17:23 2014 @@ -1682,6 +1682,13 @@ FormatPromptRecurse do_deref_pointer = false; } + if (!target) + { + if (log) + log->Printf("[Debugger::FormatPrompt] could not calculate target for prompt expression"); + break; + } + // we do not want to use the summary for a bitfield of type T:n // if we were originally dealing with just a T - that would get // us into an endless recursion _______________________________________________ lldb-commits mailing list lldb-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits