[Lldb-commits] [lldb] r121773 - /lldb/trunk/source/API/SBFrame.cpp
Johnny Chen
johnny.chen at apple.com
Tue Dec 14 09:40:04 PST 2010
Author: johnny
Date: Tue Dec 14 11:40:04 2010
New Revision: 121773
URL: http://llvm.org/viewvc/llvm-project?rev=121773&view=rev
Log:
Fixed rdar://problem/8767055 test suite failure TestStaticVariables.py (ToT r121745).
Populate the variable list from the stack frame, first.
Modified:
lldb/trunk/source/API/SBFrame.cpp
Modified: lldb/trunk/source/API/SBFrame.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBFrame.cpp?rev=121773&r1=121772&r2=121773&view=diff
==============================================================================
--- lldb/trunk/source/API/SBFrame.cpp (original)
+++ lldb/trunk/source/API/SBFrame.cpp Tue Dec 14 11:40:04 2010
@@ -360,7 +360,7 @@
if (var_scope != eValueTypeInvalid)
{
- lldb_private::VariableList variable_list;
+ lldb_private::VariableList *variable_list = m_opaque_sp->GetVariableList(true);
SymbolContext sc (m_opaque_sp->GetSymbolContext (eSymbolContextBlock));
@@ -371,13 +371,13 @@
if (sc.block && sc.block->AppendVariables (can_create,
get_parent_variables,
stop_if_block_is_inlined_function,
- &variable_list))
+ variable_list))
{
lldb_private::ConstString const_var_name(var_name);
- const uint32_t num_variables = variable_list.GetSize();
+ const uint32_t num_variables = variable_list->GetSize();
for (uint32_t i = 0; i < num_variables; ++i)
{
- lldb::VariableSP curr_var_sp (variable_list.GetVariableAtIndex(i));
+ lldb::VariableSP curr_var_sp (variable_list->GetVariableAtIndex(i));
if (curr_var_sp && curr_var_sp->GetScope() == var_scope &&
curr_var_sp->GetName() == const_var_name)
{
More information about the lldb-commits
mailing list