[Lldb-commits] [lldb] r192268 - Handle the case where completing variables in a frame
Jason Molenda
jmolenda at apple.com
Tue Oct 8 19:39:26 PDT 2013
Author: jmolenda
Date: Tue Oct 8 21:39:26 2013
New Revision: 192268
URL: http://llvm.org/viewvc/llvm-project?rev=192268&view=rev
Log:
Handle the case where completing variables in a frame
with no source-level debug information correctly.
<rdar://problem/15182936>
Modified:
lldb/trunk/source/Symbol/Variable.cpp
Modified: lldb/trunk/source/Symbol/Variable.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/Variable.cpp?rev=192268&r1=192267&r2=192268&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/Variable.cpp (original)
+++ lldb/trunk/source/Symbol/Variable.cpp Tue Oct 8 21:39:26 2013
@@ -684,11 +684,14 @@ PrivateAutoComplete (StackFrame *frame,
VariableList *variable_list = frame->GetVariableList(get_file_globals);
- const size_t num_variables = variable_list->GetSize();
- for (size_t i=0; i<num_variables; ++i)
+ if (variable_list)
{
- Variable *variable = variable_list->GetVariableAtIndex(i).get();
- matches.AppendString (variable->GetName().AsCString());
+ const size_t num_variables = variable_list->GetSize();
+ for (size_t i=0; i<num_variables; ++i)
+ {
+ Variable *variable = variable_list->GetVariableAtIndex(i).get();
+ matches.AppendString (variable->GetName().AsCString());
+ }
}
}
}
More information about the lldb-commits
mailing list