Fix a thinko in StackFrame::GetInScopeVariableList.
authorSiva Chandra <sivachandra@google.com>
Tue, 2 Feb 2016 23:49:41 +0000 (23:49 +0000)
committerSiva Chandra <sivachandra@google.com>
Tue, 2 Feb 2016 23:49:41 +0000 (23:49 +0000)
Reviewers: clayborg

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D16745

llvm-svn: 259607

lldb/source/Target/StackFrame.cpp

index e835521..ab6fe25 100644 (file)
@@ -597,7 +597,7 @@ StackFrame::GetInScopeVariableList (bool get_file_globals)
                                      var_list_sp.get());
     }
                      
-    if (m_sc.comp_unit)
+    if (m_sc.comp_unit && get_file_globals)
     {
         VariableListSP global_variable_list_sp (m_sc.comp_unit->GetVariableList(true));
         if (global_variable_list_sp)