[Lldb-commits] [lldb] r146133 - /lldb/trunk/include/lldb/Expression/ClangExpressionVariable.h
Sean Callanan
scallanan at apple.com
Wed Dec 7 18:51:25 PST 2011
Author: spyffe
Date: Wed Dec 7 20:51:25 2011
New Revision: 146133
URL: http://llvm.org/viewvc/llvm-project?rev=146133&view=rev
Log:
Tightened up the variable list to deal with
variables that might not have valid names.
Modified:
lldb/trunk/include/lldb/Expression/ClangExpressionVariable.h
Modified: lldb/trunk/include/lldb/Expression/ClangExpressionVariable.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Expression/ClangExpressionVariable.h?rev=146133&r1=146132&r2=146133&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Expression/ClangExpressionVariable.h (original)
+++ lldb/trunk/include/lldb/Expression/ClangExpressionVariable.h Wed Dec 7 20:51:25 2011
@@ -315,6 +315,8 @@
{
var_sp = GetVariableAtIndex(index);
const char *var_name_cstr = var_sp->GetName().GetCString();
+ if (!var_name_cstr || !name)
+ continue;
if (::strcmp (var_name_cstr, name) == 0)
return var_sp;
}
More information about the lldb-commits
mailing list