[Lldb-commits] [lldb] r227350 - Harden against the process pointer being null - this seems like it shouldn't happen, except it did - by a user stopping the debugger while the variables view was refreshing
Enrico Granata
egranata at apple.com
Wed Jan 28 11:23:51 PST 2015
Author: enrico
Date: Wed Jan 28 13:23:51 2015
New Revision: 227350
URL: http://llvm.org/viewvc/llvm-project?rev=227350&view=rev
Log:
Harden against the process pointer being null - this seems like it shouldn't happen, except it did - by a user stopping the debugger while the variables view was refreshing
Fixes rdar://19599357
Modified:
lldb/trunk/source/DataFormatters/FormatManager.cpp
Modified: lldb/trunk/source/DataFormatters/FormatManager.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/DataFormatters/FormatManager.cpp?rev=227350&r1=227349&r2=227350&view=diff
==============================================================================
--- lldb/trunk/source/DataFormatters/FormatManager.cpp (original)
+++ lldb/trunk/source/DataFormatters/FormatManager.cpp Wed Jan 28 13:23:51 2015
@@ -251,6 +251,8 @@ FormatManager::GetPossibleMatches (Value
do
{
lldb::ProcessSP process_sp = valobj.GetProcessSP();
+ if (!process_sp)
+ break;
ObjCLanguageRuntime* runtime = process_sp->GetObjCLanguageRuntime();
if (runtime == nullptr)
break;
More information about the lldb-commits
mailing list